From 52eb95b0cc55095eea9d83593eae279dbae9ebc2 Mon Sep 17 00:00:00 2001 From: bostic Date: Tue, 28 Dec 1993 11:59:38 +0000 Subject: [PATCH] you can only reset the terminal modes once (changing from !ICANON to CANON) without losing the re-parsing effect on the pending input. (There's a bug in the NET/2 tty driver that makes this not work in either case, however, so that has to be fixed as well.) --- common/main.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/common/main.c b/common/main.c index f8b02590..fec1f84f 100644 --- a/common/main.c +++ b/common/main.c @@ -12,7 +12,7 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "$Id: main.c,v 8.58 1993/12/26 11:22:45 bostic Exp $ (Berkeley) $Date: 1993/12/26 11:22:45 $"; +static char sccsid[] = "$Id: main.c,v 8.59 1993/12/28 11:59:38 bostic Exp $ (Berkeley) $Date: 1993/12/28 11:59:38 $"; #endif /* not lint */ #include @@ -419,11 +419,6 @@ err2: eval = 1; } gs_end(gp); - - /* Make absolutely sure that the modes are restored correctly. */ - if (F_ISSET(gp, G_ISFROMTTY) && - tcsetattr(STDIN_FILENO, TCSADRAIN, &gp->original_termios)) - err(1, "tcsetattr"); exit(eval); } -- 2.11.4.GIT