aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-05-19 02:34:16 +0000
committerRichard M. Stallman <[email protected]>1997-05-19 02:34:16 +0000
commit4ec5cb58ba8f3009a6fc1232ce35b2b7a322d747 (patch)
tree58a652f97f460c82f1512f7096a63430e9bfa64c /src/sysdep.c
parent4c637faa2450d3ee867cbb0fabfb57213817a2f7 (diff)
(init_sys_modes): Initialize Vtty_erase_char if
possible from the stty settings, otherwise to nil.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index f615e85c4e..9f8585b3c4 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1206,7 +1206,7 @@ char _sobuf[BUFSIZ];
static struct ltchars new_ltchars = {-1,-1,-1,-1,-1,-1};
#endif
#ifdef HAVE_TCHARS
- static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1};
+static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1};
#endif
init_sys_modes ()
@@ -1220,6 +1220,8 @@ init_sys_modes ()
#endif
#endif
+ Vtty_erase_char = Qnil;
+
if (noninteractive)
return;
@@ -1273,6 +1275,8 @@ init_sys_modes ()
tty = old_tty;
#if defined (HAVE_TERMIO) || defined (HAVE_TERMIOS)
+ Vtty_erase_char = old_tty.main.c_cc[VERASE];
+
#ifdef DGUX
/* This allows meta to be sent on 8th bit. */
tty.main.c_iflag &= ~INPCK; /* don't check input for parity */
@@ -1386,6 +1390,7 @@ init_sys_modes ()
tty.main.tt2_char |= TT2$M_PASTHRU | TT2$M_XON;
#else /* not VMS (BSD, that is) */
#ifndef DOS_NT
+ Vtty_erase_char = tty.main.sg_erase;
tty.main.sg_flags &= ~(ECHO | CRMOD | XTABS);
if (meta_key)
tty.main.sg_flags |= ANYP;