* This routine initializes the current and standard screen.
* %G% (Berkeley) @(#)initscr.c 1.3
fprintf(outf
, "INITSCR()\n");
for (_tty_ch
= 0; _tty_ch
< NOFILE
; _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
)
fprintf(outf
, "INITSCR: stdscr = 0%o\n", stdscr
);
stdscr
= newwin(LINES
, COLS
, 0, 0);