Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Add virtual screen for wnoutrefresh()/doupdate().



details:   https://anonhg.NetBSD.org/src/rev/23763ddefa29
branches:  trunk
changeset: 485391:23763ddefa29
user:      jdc <jdc%NetBSD.org@localhost>
date:      Thu Apr 27 00:23:01 2000 +0000

description:
Add virtual screen for wnoutrefresh()/doupdate().

diffstat:

 lib/libcurses/initscr.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r b98da07fe693 -r 23763ddefa29 lib/libcurses/initscr.c
--- a/lib/libcurses/initscr.c   Thu Apr 27 00:22:44 2000 +0000
+++ b/lib/libcurses/initscr.c   Thu Apr 27 00:23:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: initscr.c,v 1.16 2000/04/17 12:25:46 blymn Exp $       */
+/*     $NetBSD: initscr.c,v 1.17 2000/04/27 00:23:01 jdc Exp $ */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)initscr.c  8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: initscr.c,v 1.16 2000/04/17 12:25:46 blymn Exp $");
+__RCSID("$NetBSD: initscr.c,v 1.17 2000/04/27 00:23:01 jdc Exp $");
 #endif
 #endif /* not lint */
 
@@ -98,6 +98,14 @@
                return (NULL);
        }
 
+       if (__virtscr != NULL)
+               delwin(__virtscr);
+       if ((__virtscr = newwin(LINES, COLS, 0, 0)) == ERR) {
+               delwin(curscr);
+               delwin(stdscr);
+               return (NULL);
+       }
+
        __init_getch(sp);
 
        __init_acs();



Home | Main Index | Thread Index | Old Index