Commit b0cebda3 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Don't try to initialize curses if the TERM variable is not set.

parent 7af0b1cb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment