diff options
-rw-r--r-- | compat/mingw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/mingw.c b/compat/mingw.c index 74c6180a20..df0fa03194 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -2113,6 +2113,10 @@ void mingw_startup() setenv("TMPDIR", tmp, 1); } + /* simulate TERM to enable auto-color (see color.c) */ + if (!getenv("TERM")) + setenv("TERM", "cygwin", 1); + /* initialize critical section for waitpid pinfo_t list */ InitializeCriticalSection(&pinfo_cs); |