From 5a18e63fb8a4af8ff08105c36eab6a9bbaba6fca Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 12 Sep 2009 09:54:35 +0000 Subject: tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for new windows. --- usr.bin/tmux/cmd-new-session.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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 @@ -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; -- cgit v1.2.3