summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-09-13 20:30:12 +0000
committerTiago Cunha <tcunha@gmx.com>2009-09-13 20:30:12 +0000
commit61990deb361983589eafb5779344f3981905194a (patch)
tree0ab83ea5e4e33e32b2ef76caf6ef2d7cbd653e5b /cmd-new-session.c
parent0ec1ce005c98f4fa1813cf47e4bcc11d8cd4b523 (diff)
Sync OpenBSD patchset 323:
tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for new windows.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index ebe41533..10335fae 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-new-session.c,v 1.62 2009-08-26 09:10:47 nicm Exp $ */
+/* $Id: cmd-new-session.c,v 1.63 2009-09-13 20:30:12 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -179,7 +179,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
memset(tio.c_cc, _POSIX_VDISABLE, sizeof tio.c_cc);
tio.c_cc[VINTR] = CINTR;
tio.c_cc[VQUIT] = CQUIT;
- tio.c_cc[VERASE] = CERASE;
+ tio.c_cc[VERASE] = '\177';
tio.c_cc[VKILL] = CKILL;
tio.c_cc[VEOF] = CEOF;
tio.c_cc[VSTART] = CSTART;