SCCS-vsn: lib/libcurses/tty.c 5.10
-static char sccsid[] = "@(#)tty.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)tty.c 5.10 (Berkeley) %G%";
return (tcsetattr(STDIN_FILENO, TCSADRAIN, &norawt));
}
return (tcsetattr(STDIN_FILENO, TCSADRAIN, &norawt));
}
+void
+__startwin()
+{
+ (void)fflush(stdout);
+ (void)setvbuf(stdout, NULL, _IOFBF, 0);
+
+ tputs(TI, 0, __cputchar);
+ tputs(VS, 0, __cputchar);
+}
+
(void)tputs(VE, 0, __cputchar);
(void)tputs(TE, 0, __cputchar);
(void)fflush(stdout);
(void)tputs(VE, 0, __cputchar);
(void)tputs(TE, 0, __cputchar);
(void)fflush(stdout);
+ (void)setvbuf(stdout, NULL, _IOLBF, 0);
__echoit = __orig_termios.c_lflag & ECHO;
__rawmode = __orig_termios.c_lflag & ICANON;
__echoit = __orig_termios.c_lflag & ECHO;
__rawmode = __orig_termios.c_lflag & ICANON;
return (tcsetattr(STDIN_FILENO, TCSADRAIN, &__orig_termios));
}
return (tcsetattr(STDIN_FILENO, TCSADRAIN, &__orig_termios));
}
-void
-__startwin()
-{
- tputs(TI, 0, __cputchar);
- tputs(VS, 0, __cputchar);
-}
-
/*
* The following routines, savetty and resetty are completely useless and
* are left in only as stubs. If people actually use them they will almost
/*
* The following routines, savetty and resetty are completely useless and
* are left in only as stubs. If people actually use them they will almost