tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for

new windows.
This commit is contained in:
Nicholas Marriott 2009-09-12 09:54:34 +00:00
parent 372a8cb1d9
commit d771614d33

View File

@ -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;