diff --git a/isatty/isatty_bsd.go b/isatty/isatty_bsd.go index 07ec1bd..711f288 100644 --- a/isatty/isatty_bsd.go +++ b/isatty/isatty_bsd.go @@ -3,6 +3,8 @@ package isatty +import "golang.org/x/sys/unix" + // IsTerminal return true if the file descriptor is terminal. func IsTerminal(fd uintptr) bool { _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA)