mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for
new windows.
This commit is contained in:
parent
372a8cb1d9
commit
d771614d33
@ -164,6 +164,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||||||
fatal("tcgetattr failed");
|
fatal("tcgetattr failed");
|
||||||
} else
|
} else
|
||||||
memcpy(tio.c_cc, ttydefchars, sizeof tio.c_cc);
|
memcpy(tio.c_cc, ttydefchars, sizeof tio.c_cc);
|
||||||
|
tio.c_cc[VERASE] = '\177';
|
||||||
tio.c_iflag = TTYDEF_IFLAG;
|
tio.c_iflag = TTYDEF_IFLAG;
|
||||||
tio.c_oflag = TTYDEF_OFLAG;
|
tio.c_oflag = TTYDEF_OFLAG;
|
||||||
tio.c_lflag = TTYDEF_LFLAG;
|
tio.c_lflag = TTYDEF_LFLAG;
|
||||||
|
Loading…
Reference in New Issue
Block a user