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

new windows.
pull/1/head
Nicholas Marriott 2009-09-12 09:54:34 +00:00
parent 372a8cb1d9
commit d771614d33
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
fatal("tcgetattr failed");
} else
memcpy(tio.c_cc, ttydefchars, sizeof tio.c_cc);
tio.c_cc[VERASE] = '\177';
tio.c_iflag = TTYDEF_IFLAG;
tio.c_oflag = TTYDEF_OFLAG;
tio.c_lflag = TTYDEF_LFLAG;