☰
Debian Codegraph
@
2.15-2
/
/
term
/
terminal_solaris.go
☽
☼
term/terminal_solaris.go
code
plain
raw
Expat
and
BSD-3-Clause
2014 Simon Eskildsen; 2013 The Go Authors
debian/copyright
1
package term
2
3
import "golang.org/x/sys/unix"
4
5
// IsTty returns true if the given file descriptor is a terminal.
6
func IsTty(fd uintptr) bool {
7
_, err := unix.IoctlGetTermios(int(fd), unix.TCGETA)
8
return err == nil
9
}