disable colors in ansi

This commit is contained in:
dojutsu-user 2022-10-25 22:57:00 +05:30
parent 8f28d1f9d5
commit d0955ee077

View file

@ -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 {