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 {