aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-19 02:34:16 +0000
committerRichard M. Stallman1997-05-19 02:34:16 +0000
commit4ec5cb58ba8f3009a6fc1232ce35b2b7a322d747 (patch)
tree58a652f97f460c82f1512f7096a63430e9bfa64c /src
parent4c637faa2450d3ee867cbb0fabfb57213817a2f7 (diff)
downloademacs-4ec5cb58ba8f3009a6fc1232ce35b2b7a322d747.tar.gz
emacs-4ec5cb58ba8f3009a6fc1232ce35b2b7a322d747.zip
(init_sys_modes): Initialize Vtty_erase_char if
possible from the stty settings, otherwise to nil.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index f615e85c4e0..9f8585b3c43 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1206,7 +1206,7 @@ char _sobuf[BUFSIZ];
1206static struct ltchars new_ltchars = {-1,-1,-1,-1,-1,-1}; 1206static struct ltchars new_ltchars = {-1,-1,-1,-1,-1,-1};
1207#endif 1207#endif
1208#ifdef HAVE_TCHARS 1208#ifdef HAVE_TCHARS
1209 static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1}; 1209static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1};
1210#endif 1210#endif
1211 1211
1212init_sys_modes () 1212init_sys_modes ()
@@ -1220,6 +1220,8 @@ init_sys_modes ()
1220#endif 1220#endif
1221#endif 1221#endif
1222 1222
1223 Vtty_erase_char = Qnil;
1224
1223 if (noninteractive) 1225 if (noninteractive)
1224 return; 1226 return;
1225 1227
@@ -1273,6 +1275,8 @@ init_sys_modes ()
1273 tty = old_tty; 1275 tty = old_tty;
1274 1276
1275#if defined (HAVE_TERMIO) || defined (HAVE_TERMIOS) 1277#if defined (HAVE_TERMIO) || defined (HAVE_TERMIOS)
1278 Vtty_erase_char = old_tty.main.c_cc[VERASE];
1279
1276#ifdef DGUX 1280#ifdef DGUX
1277 /* This allows meta to be sent on 8th bit. */ 1281 /* This allows meta to be sent on 8th bit. */
1278 tty.main.c_iflag &= ~INPCK; /* don't check input for parity */ 1282 tty.main.c_iflag &= ~INPCK; /* don't check input for parity */
@@ -1386,6 +1390,7 @@ init_sys_modes ()
1386 tty.main.tt2_char |= TT2$M_PASTHRU | TT2$M_XON; 1390 tty.main.tt2_char |= TT2$M_PASTHRU | TT2$M_XON;
1387#else /* not VMS (BSD, that is) */ 1391#else /* not VMS (BSD, that is) */
1388#ifndef DOS_NT 1392#ifndef DOS_NT
1393 Vtty_erase_char = tty.main.sg_erase;
1389 tty.main.sg_flags &= ~(ECHO | CRMOD | XTABS); 1394 tty.main.sg_flags &= ~(ECHO | CRMOD | XTABS);
1390 if (meta_key) 1395 if (meta_key)
1391 tty.main.sg_flags |= ANYP; 1396 tty.main.sg_flags |= ANYP;