From d0955ee077a656322e4e3a44f389863a6fffbe29 Mon Sep 17 00:00:00 2001 From: dojutsu-user Date: Tue, 25 Oct 2022 22:57:00 +0530 Subject: [PATCH] disable colors in ansi --- cmd/gh/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/gh/main.go b/cmd/gh/main.go index 750233ba7..09beb5a35 100644 --- a/cmd/gh/main.go +++ b/cmd/gh/main.go @@ -70,6 +70,7 @@ func mainRun() exitCode { } if !cmdFactory.IOStreams.ColorEnabled() { surveyCore.DisableColor = true + ansi.DisableColors(true) } else { // override survey's poor choice of color surveyCore.TemplateFuncsWithColor["color"] = func(style string) string {