Strip escape characters when TERM=dumb

am: 77fe361175

Change-Id: I3c2844dc57c48abb0688b76072861b6880af3cbb
This commit is contained in:
Dan Willemsen 2018-07-16 13:16:42 -07:00 committed by android-build-merger
commit 418bb9da03
1 changed files with 1 additions and 1 deletions

View File

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