diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-09-12 09:54:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-09-12 09:54:35 +0000 |
commit | 5a18e63fb8a4af8ff08105c36eab6a9bbaba6fca (patch) | |
tree | e13ed95b7e6174ab6498f57ea25464293ef8b5ed /usr.bin | |
parent | dd37f97a862be2eb3b277eedea80d6a4fd42719f (diff) |
tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for
new windows.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/cmd-new-session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-new-session.c b/usr.bin/tmux/cmd-new-session.c index f9e538f82d4..0620dec28de 100644 --- a/usr.bin/tmux/cmd-new-session.c +++ b/usr.bin/tmux/cmd-new-session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-new-session.c,v 1.16 2009/08/23 17:37:48 nicm Exp $ */ +/* $OpenBSD: cmd-new-session.c,v 1.17 2009/09/12 09:54:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |