Fix missing colours on windows (#4721)

This commit is contained in:
Klaus Post
2023-10-19 11:31:34 -07:00
committed by GitHub
parent 903a1f202c
commit d2a2bdb07b
+2 -2
View File
@@ -116,9 +116,9 @@ func Main(args []string) error {
probe.SetAppInfo("Commit", ShortCommitID)
// Fetch terminal size, if not available, automatically
// set globalQuiet to true.
// set globalQuiet to true on non-window.
if w, h, e := term.GetSize(int(os.Stdin.Fd())); e != nil {
globalQuiet = true
globalQuiet = runtime.GOOS != "windows"
} else {
globalTermWidth, globalTermHeight = w, h
}