Module: wine Branch: master Commit: b0cebda36b0ad3aeacfe6a87394d024b0a6939d3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b0cebda36b0ad3aeacfe6a8739...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Feb 16 23:30:32 2011 +0100
kernel32: Don't try to initialize curses if the TERM variable is not set.
---
dlls/kernel32/term.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/term.c b/dlls/kernel32/term.c index df0719a..18eb4b2 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;