Merge "Improve dumb terminal detection"
am: a3ded95424
Change-Id: I8e602bcfd343f6d7ec2163460c89956d0eccdbbc
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(),