commit | a3ded95424e9a71d827518e42dbc4c2450cc1a6b | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Sat Jun 29 02:45:43 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Jun 29 02:45:43 2019 +0000 |
tree | c52c1cea9f9d5b1f9715e32a0c804777d9b8b77c | |
parent | dd5cf7574b848c6e3f0c524550ddec1c0d5426c8 [diff] | |
parent | b073581441bf4d69c84e1658cf78e07c3f73a3bd [diff] |
Merge "Improve dumb terminal detection"
diff --git a/ui/terminal/util.go b/ui/terminal/util.go index c9377f1..f383ef1 100644 --- a/ui/terminal/util.go +++ b/ui/terminal/util.go
@@ -23,6 +23,9 @@ ) func isSmartTerminal(w io.Writer) bool { + if term, ok := os.LookupEnv("TERM"); ok && term == "dumb" { + return false + } if f, ok := w.(*os.File); ok { var termios syscall.Termios _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, f.Fd(),