2 /* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for *
3 * details. If they are missing then this copy is in violation of *
4 * the copyright conditions. */
9 ** The routine initscr().
14 #include "curses.priv.h"
18 static bool initialized = FALSE;
23 T(("initscr() called"));
26 /* Portable applications must not call initscr() more than once */
30 if ((name = getenv("TERM")) == 0)
32 if (newterm(name, stdout, stdin) == 0) {
33 fprintf(stderr, "Error opening terminal: %s.\n", name);
36 /* def_shell_mode - done in newterm */