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