Strip escape characters when TERM=dumb
am: 77fe361175
Change-Id: I3c2844dc57c48abb0688b76072861b6880af3cbb
This commit is contained in:
commit
418bb9da03
|
@ -82,8 +82,8 @@ func NewWriter(stdio StdioInterface) Writer {
|
|||
|
||||
if term, ok := os.LookupEnv("TERM"); ok && term != "dumb" {
|
||||
w.smartTerminal = isTerminal(stdio.Stdout())
|
||||
w.stripEscapes = !w.smartTerminal
|
||||
}
|
||||
w.stripEscapes = !w.smartTerminal
|
||||
|
||||
return w
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue