Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses I was slightly too agressive removing clearok(...



details:   https://anonhg.NetBSD.org/src/rev/fe67847f6eea
branches:  trunk
changeset: 542605:fe67847f6eea
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sun Feb 02 17:52:29 2003 +0000

description:
I was slightly too agressive removing clearok() in revision 1.8.
Add back a clearok(stdscr) for terminals where the startup sequence
doesn't clear the screen.

diffstat:

 lib/libcurses/screen.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 36b4307b2842 -r fe67847f6eea lib/libcurses/screen.c
--- a/lib/libcurses/screen.c    Sun Feb 02 17:43:16 2003 +0000
+++ b/lib/libcurses/screen.c    Sun Feb 02 17:52:29 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: screen.c,v 1.10 2003/01/27 21:09:21 jdc Exp $  */
+/*     $NetBSD: screen.c,v 1.11 2003/02/02 17:52:29 jdc Exp $  */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)screen.c   8.2 (blymn) 11/27/2001";
 #else
-__RCSID("$NetBSD: screen.c,v 1.10 2003/01/27 21:09:21 jdc Exp $");
+__RCSID("$NetBSD: screen.c,v 1.11 2003/02/02 17:52:29 jdc Exp $");
 #endif
 #endif                                 /* not lint */
 
@@ -161,6 +161,8 @@
                goto error_exit;
        }
 
+       clearok(new_screen->stdscr, 1);
+
        if ((new_screen->__virtscr = __newwin(new_screen, new_screen->LINES,
            new_screen->COLS, 0, 0, FALSE)) == ERR) {
                delwin(new_screen->curscr);



Home | Main Index | Thread Index | Old Index