Set LINES and COLS here so that __swflags() sets flags on the initial windows.
Remove no longer useful debug output.
This commit is contained in:
parent
247d6694f7
commit
d899fbce8b
|
@ -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 @@ _cursesi_setterm(char *type, SCREEN *screen)
|
|||
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 @@ _cursesi_setterm(char *type, SCREEN *screen)
|
|||
if (screen->COLS <= 4)
|
||||
return (ERR);
|
||||
|
||||
LINES = screen->LINES;
|
||||
COLS = screen->COLS;
|
||||
|
||||
#ifdef DEBUG
|
||||
__CTRACE("setterm: LINES = %d, COLS = %d\n", LINES, COLS);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue