From 521cc3101f7cad40fa5d23cf17aeed6c225ea488 Mon Sep 17 00:00:00 2001 From: Jay Lepreau Date: Mon, 28 Apr 1986 15:24:37 -0800 Subject: [PATCH] local mode word wasn't getting fixed on reset SCCS-vsn: usr.bin/tset/tset.c 5.8 --- usr/src/usr.bin/tset/tset.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/usr/src/usr.bin/tset/tset.c b/usr/src/usr.bin/tset/tset.c index c02e2c9124..cadefed87c 100644 --- a/usr/src/usr.bin/tset/tset.c +++ b/usr/src/usr.bin/tset/tset.c @@ -11,7 +11,7 @@ char copyright[] = #endif not lint #ifndef lint -static char sccsid[] = "@(#)tset.c 5.7 (Berkeley) %G%"; +static char sccsid[] = "@(#)tset.c 5.8 (Berkeley) %G%"; #endif not lint /* @@ -604,9 +604,6 @@ char *argv[]; # ifndef V6 # ifdef UCB_NTTY struct ltchars ltc; -#ifdef TIOCLBIC - static int lclear = LMDMBUF|LLITOUT|LPASS8; -#endif TIOCLBIC if (ldisc == NTTYDISC) { @@ -629,9 +626,6 @@ char *argv[]; tchar.t_eofc = CHK(tchar.t_eofc, CEOF); /* brkc is left alone */ (void) ioctl(FILEDES, TIOCSETC, (char *)&tchar); -#ifdef TIOCLBIC - (void) ioctl(FILEDES, TIOCLBIC, (char *)&lclear); -#endif TIOCLBIC # endif TIOCGETC mode.sg_flags &= ~(RAW # ifdef CBREAK @@ -1176,6 +1170,8 @@ ask: } } } + if (IsReset) + lmode &= ~(LMDMBUF|LLITOUT|LPASS8); (void) ioctl(FILEDES, TIOCLSET, (char *)&lmode); # endif -- 2.20.1