diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-07-16 10:53:46 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-07-16 10:56:10 -0700 |
commit | 77fe3611758abc86e87050a556ca6f73299cdc2f (patch) | |
tree | 33743a2b80a33c73e5a4a567987ee9e5fbfaf96a /ui/terminal | |
parent | dd41d7d6315f5e094a7d4c18fa097fac41c286f7 (diff) | |
download | build_soong-77fe3611758abc86e87050a556ca6f73299cdc2f.tar.gz build_soong-77fe3611758abc86e87050a556ca6f73299cdc2f.tar.bz2 build_soong-77fe3611758abc86e87050a556ca6f73299cdc2f.zip |
Strip escape characters when TERM=dumb
Bug: 111447427
Test: m nothing
Test: TERM=dumb m nothing
Test: m nothing | tee log
Change-Id: I041ec8a60e633393a145996d9ba7b5dae2880b06
Diffstat (limited to 'ui/terminal')
-rw-r--r-- | ui/terminal/writer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/terminal/writer.go b/ui/terminal/writer.go index 351c00c1..ebe4b2aa 100644 --- a/ui/terminal/writer.go +++ b/ui/terminal/writer.go @@ -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 } |