kernel32: Don't try to initialize curses if the TERM variable is not set.
This commit is contained in:
parent
7af0b1cb45
commit
b0cebda36b
|
@ -415,6 +415,7 @@ BOOL TERM_Init(void)
|
|||
{
|
||||
/* if we're not attached to a tty, don't fire the curses support */
|
||||
if (!isatty(0) || !isatty(1)) return FALSE;
|
||||
if (!getenv("TERM")) return FALSE;
|
||||
if (!TERM_bind_libcurses()) return FALSE;
|
||||
if (setupterm(NULL, 1 /* really ?? */, NULL) == -1) return FALSE;
|
||||
TERM_init_done = TRUE;
|
||||
|
|
Loading…
Reference in New Issue