go vendor

This commit is contained in:
lealife committed 2017-11-30 19:55:33 +08:00
1 parent 2856da6888
commit 0fb92efbf3
670 files changed
+199010

No files matched your search

+9
View File
@@ -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
}