Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Set LINES and COLS here so that __swflags() se...



details:   https://anonhg.NetBSD.org/src/rev/bb2e03d224d0
branches:  trunk
changeset: 540121:bb2e03d224d0
user:      jdc <jdc%NetBSD.org@localhost>
date:      Thu Dec 05 17:04:25 2002 +0000

description:
Set LINES and COLS here so that __swflags() sets flags on the initial windows.
Remove no longer useful debug output.

diffstat:

 lib/libcurses/setterm.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r 8ebd9a52ddf8 -r bb2e03d224d0 lib/libcurses/setterm.c
--- a/lib/libcurses/setterm.c   Thu Dec 05 16:52:58 2002 +0000
+++ b/lib/libcurses/setterm.c   Thu Dec 05 17:04:25 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: setterm.c,v 1.33 2002/09/11 15:23:24 jdc Exp $ */
+/*     $NetBSD: setterm.c,v 1.34 2002/12/05 17:04:25 jdc Exp $ */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)setterm.c  8.8 (Berkeley) 10/25/94";
 #else
-__RCSID("$NetBSD: setterm.c,v 1.33 2002/09/11 15:23:24 jdc Exp $");
+__RCSID("$NetBSD: setterm.c,v 1.34 2002/12/05 17:04:25 jdc Exp $");
 #endif
 #endif /* not lint */
 
@@ -130,10 +130,6 @@
        char *p;
        char cm_buff[64];
 
-#ifdef DEBUG
-       __CTRACE("setterm: (\"%s\")\nLINES = %d, COLS = %d\n",
-           type, LINES, COLS);
-#endif
        if (type[0] == '\0')
                type = "xx";
        unknown = 0;
@@ -172,6 +168,9 @@
        if (screen->COLS <= 4)
                return (ERR);
 
+       LINES = screen->LINES;
+       COLS = screen->COLS;
+
 #ifdef DEBUG
        __CTRACE("setterm: LINES = %d, COLS = %d\n", LINES, COLS);
 #endif



Home | Main Index | Thread Index | Old Index