diff --git a/compat/mingw.c b/compat/mingw.c index 26cbcffdfa..939343434f 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -1259,6 +1259,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; }