* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)initscr.c 5.1 (Berkeley) %G%";
* This routine initializes the current and standard screen.
fprintf(outf
, "INITSCR()\n");
for (_tty_ch
= 0; _tty_ch
< nfd
; _tty_ch
++)
if ((sp
= getenv("TERM")) == NULL
)
fprintf(outf
, "INITSCR: term = %s\n", sp
);
fprintf(outf
, "INITSCR: curscr = 0%o\n", curscr
);
fprintf(outf
, "LINES = %d, COLS = %d\n", LINES
, COLS
);
if ((curscr
= newwin(LINES
, COLS
, 0, 0)) == ERR
)
curscr
->_flags
&= ~_FULLLINE
;
fprintf(outf
, "INITSCR: stdscr = 0%o\n", stdscr
);
stdscr
= newwin(LINES
, COLS
, 0, 0);