diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-09-13 20:56:52 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-09-13 20:56:52 +0000 |
commit | 5fcf7149d4e97308df2f2ef335bd8d5553345317 (patch) | |
tree | a58332509c3dcd94f51761990eb1b026b8da96a5 /cmd-new-session.c | |
parent | 4d4ec52df8ea2755978f8c6f58d3d5447b52ad59 (diff) |
Always set VERASE to \177.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r-- | cmd-new-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c index 10335fae..58dadc61 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -1,4 +1,4 @@ -/* $Id: cmd-new-session.c,v 1.63 2009-09-13 20:30:12 tcunha Exp $ */ +/* $Id: cmd-new-session.c,v 1.64 2009-09-13 20:56:52 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -179,7 +179,6 @@ 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] = '\177'; tio.c_cc[VKILL] = CKILL; tio.c_cc[VEOF] = CEOF; tio.c_cc[VSTART] = CSTART; @@ -192,6 +191,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx) tio.c_cc[VLNEXT] = CLNEXT; #endif } + tio.c_cc[VERASE] = '\177'; tio.c_iflag = TTYDEF_IFLAG; tio.c_oflag = TTYDEF_OFLAG; tio.c_lflag = TTYDEF_LFLAG; |