diff --git a/compat/mingw.c b/compat/mingw.c index 5317071169..27a81f769c 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -640,6 +640,10 @@ char *mingw_getenv(const char *name) if (!result) result = getenv("TEMP"); } + else if (!result && !strcmp(name, "TERM")) { + /* simulate TERM to enable auto-color (see color.c) */ + result = "winansi"; + } return result; }