From c179a6d16335d06102f16f4f708bd392e4e0e62d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 7 Aug 1997 02:12:40 +0000 Subject: [PATCH] (init_sys_modes) [mips || HAVE_TCATTR]: Handle flow_control by setting VSTART and VSTOP characters. --- src/sysdep.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/sysdep.c b/src/sysdep.c index 098612a1bb5..8a8ccbd885f 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -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. */ -- 2.39.2