[BUGFIX] Windows terminals that don't set TERM now properly set
--no-colors by default
This commit is contained in:
parent
ba165eb68c
commit
7eae3e5464
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -278,7 +278,7 @@ func flagParser() {
|
||||||
|
|
||||||
// Windows terminal does not have color encoding
|
// Windows terminal does not have color encoding
|
||||||
// so let's make sure windows users are happy
|
// 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
|
*switches[11] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue