changeset 19198:49274b3596a7

(init_sys_modes) [mips || HAVE_TCATTR]: Handle flow_control by setting VSTART and VSTOP characters.
author Richard M. Stallman <rms@gnu.org>
date Thu, 07 Aug 1997 02:12:40 +0000
parents bca1fd2554e0
children da8774e1207b
files src/sysdep.c
diffstat 1 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Wed Aug 06 19:43:02 1997 +0000
+++ b/src/sysdep.c	Thu Aug 07 02:12:40 1997 +0000
@@ -1337,6 +1337,7 @@
       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 @@
 #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.  */