From d771614d33da54c2028a690079a64c0edb2949fc Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 12 Sep 2009 09:54:34 +0000 Subject: [PATCH] tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for new windows. --- cmd-new-session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd-new-session.c b/cmd-new-session.c index 8cf30bc3..a05a4846 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -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;