From 0e91e971325dc1cbdc63cef6e6c36ff938a1336d Mon Sep 17 00:00:00 2001 From: starainrt Date: Wed, 7 Jul 2021 11:42:33 +0800 Subject: [PATCH] bug fix --- isatty/isatty_bsd.go | 2 ++ 1 file changed, 2 insertions(+) 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)