[BUGFIX] Windows terminals that don't set TERM now properly set

--no-colors by default
This commit is contained in:
Elia el Lazkani 2020-03-06 20:52:48 +01:00
parent ba165eb68c
commit 7eae3e5464

View file

@ -278,7 +278,7 @@ func flagParser() {
// Windows terminal does not have color encoding
// so let's make sure windows users are happy
if os.Getenv("TERM") == "" && !*png && *format != "" && *freeStyle != "" {
if os.Getenv("TERM") == "" && !*png && *format == "" && *freeStyle == "" {
*switches[11] = true
}
}