SCCS-vsn: usr.bin/tset/tset.c 5.8
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)tset.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)tset.c 5.8 (Berkeley) %G%";
# ifndef V6
# ifdef UCB_NTTY
struct ltchars ltc;
# ifndef V6
# ifdef UCB_NTTY
struct ltchars ltc;
-#ifdef TIOCLBIC
- static int lclear = LMDMBUF|LLITOUT|LPASS8;
-#endif TIOCLBIC
tchar.t_eofc = CHK(tchar.t_eofc, CEOF);
/* brkc is left alone */
(void) ioctl(FILEDES, TIOCSETC, (char *)&tchar);
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
# endif TIOCGETC
mode.sg_flags &= ~(RAW
# ifdef CBREAK
+ if (IsReset)
+ lmode &= ~(LMDMBUF|LLITOUT|LPASS8);
(void) ioctl(FILEDES, TIOCLSET, (char *)&lmode);
# endif
(void) ioctl(FILEDES, TIOCLSET, (char *)&lmode);
# endif