1 // +build solaris,!appengine
9 "golang.org/x/sys/unix"
12 // IsTerminal returns true if the given file descriptor is a terminal.
13 func IsTerminal(f io.Writer) bool {
14 switch v := f.(type) {
16 _, err := unix.IoctlGetTermios(int(v.Fd()), unix.TCGETA)