go vendor
This commit is contained in:
1 parent
2856da6888
commit
0fb92efbf3
670 files changed
+199010
No files matched your search
+9
@@ -0,0 +1,9 @@
|
||||
package term
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
||||
// IsTty returns true if the given file descriptor is a terminal.
|
||||
func IsTty(fd uintptr) bool {
|
||||
_, err := unix.IoctlGetTermios(int(fd), unix.TCGETA)
|
||||
return err == nil
|
||||
}
|
||||
Reference in new issue
Block a user