]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_sys_modes) [mips || HAVE_TCATTR]:
authorRichard M. Stallman <rms@gnu.org>
Thu, 7 Aug 1997 02:12:40 +0000 (02:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 7 Aug 1997 02:12:40 +0000 (02:12 +0000)
Handle flow_control by setting VSTART and VSTOP characters.

src/sysdep.c

index 098612a1bb563e62b846f94541db3664f825d0b2..8a8ccbd885f73a4260b503c0b2c03f2d30f79a09 100644 (file)
@@ -1337,6 +1337,7 @@ init_sys_modes ()
       tty.main.c_cc[VSWTCH] = CDISABLE;        /* Turn off shell layering use
                                           of C-z */
 #endif /* VSWTCH */
+
 #if defined (mips) || defined (HAVE_TCATTR)
 #ifdef VSUSP
       tty.main.c_cc[VSUSP] = CDISABLE; /* Turn off mips handling of C-z.  */
@@ -1359,13 +1360,27 @@ init_sys_modes ()
 #ifdef VDISCARD
       tty.main.c_cc[VDISCARD] = CDISABLE;
 #endif /* VDISCARD */
+
+      if (flow_control)
+       {
 #ifdef VSTART
-      tty.main.c_cc[VSTART] = CDISABLE;
+         tty.main.c_cc[VSTART] = '\021';
 #endif /* VSTART */
 #ifdef VSTOP
-      tty.main.c_cc[VSTOP] = CDISABLE;
+         tty.main.c_cc[VSTOP] = '\023';
 #endif /* VSTOP */
+       }
+      else
+       {
+#ifdef VSTART
+         tty.main.c_cc[VSTART] = CDISABLE;
+#endif /* VSTART */
+#ifdef VSTOP
+         tty.main.c_cc[VSTOP] = CDISABLE;
+#endif /* VSTOP */
+       }
 #endif /* mips or HAVE_TCATTR */
+
 #ifdef SET_LINE_DISCIPLINE
       /* Need to explicitly request TERMIODISC line discipline or
          Ultrix's termios does not work correctly.  */