From b0cebda36b0ad3aeacfe6a87394d024b0a6939d3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 16 Feb 2011 23:30:32 +0100 Subject: [PATCH] kernel32: Don't try to initialize curses if the TERM variable is not set. --- dlls/kernel32/term.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/kernel32/term.c b/dlls/kernel32/term.c index df0719a204e..18eb4b2d35c 100644 --- a/dlls/kernel32/term.c +++ b/dlls/kernel32/term.c @@ -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;