Uninitialized vector entry?
[minix3.git] / lib / curses / initscr.c
blob7ed2f9d1126d5bfff13c7fa3eaa654d596edbf7a
1 /* initscr.c - initialize the curses library */
3 #include <stdlib.h>
4 #include <curses.h>
5 #include "curspriv.h"
7 WINDOW *initscr()
9 char *term;
11 if ((term = getenv("TERM")) == NULL) return NULL;
12 setterm(term);
13 gettmode();
14 if ((_cursvar.tmpwin = newwin(LINES, COLS, 0, 0)) == NULL) return NULL;
15 if ((curscr = newwin(LINES, COLS, 0, 0)) == NULL) return NULL;
16 if ((stdscr = newwin(LINES, COLS, 0, 0)) == NULL) return NULL;
17 clearok(curscr, TRUE);
18 return(stdscr);