disable colors in ansi
This commit is contained in:
parent
8f28d1f9d5
commit
d0955ee077
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue