add __startwin, which reinitializes the terminal using TI, VS
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 25 Jan 1993 12:14:30 +0000 (04:14 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 25 Jan 1993 12:14:30 +0000 (04:14 -0800)
SCCS-vsn: lib/libcurses/initscr.c 5.13

usr/src/lib/libcurses/initscr.c

index 7bf73ff..e00ffd1 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)initscr.c  5.12 (Berkeley) %G%";
+static char sccsid[] = "@(#)initscr.c  5.13 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <curses.h>
 #endif /* not lint */
 
 #include <curses.h>
@@ -44,8 +44,7 @@ initscr()
        if (!HO && !CM) 
                return (NULL);
 
        if (!HO && !CM) 
                return (NULL);
 
-       tputs(TI, 0, __cputchar);
-       tputs(VS, 0, __cputchar);
+       __startwin();
 
        if (curscr != NULL)
                delwin(curscr);
 
        if (curscr != NULL)
                delwin(curscr);
@@ -60,7 +59,7 @@ initscr()
                return (NULL);
        }
 
                return (NULL);
        }
 
-       (void)signal(SIGTSTP, tstp);
+       (void)signal(SIGTSTP, __stop_signal_handler);
 
 #ifdef DEBUG
        __TRACE("initscr: LINES = %d, COLS = %d\n", LINES, COLS);
 
 #ifdef DEBUG
        __TRACE("initscr: LINES = %d, COLS = %d\n", LINES, COLS);