Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3ded954 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Improve dumb terminal detection"

parents dd5cf757 b0735814
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -23,6 +23,9 @@ import (
)

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(),