From d2a2bdb07b967671c413b0c86a139434c34073e0 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Thu, 19 Oct 2023 11:31:34 -0700 Subject: [PATCH] Fix missing colours on windows (#4721) --- cmd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index db76106d..a02cb039 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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 }