1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-06 01:10:15 +00:00

Update vendor

(+) github.com/mattn/go-colorable
This commit is contained in:
MaiWJ
2018-09-26 17:15:49 +08:00
committed by Alena Prokharchyk
parent 5941368767
commit f69628f41a
19 changed files with 1438 additions and 0 deletions

18
vendor/github.com/mattn/go-isatty/isatty_linux.go generated vendored Normal file
View File

@@ -0,0 +1,18 @@
// +build linux
// +build !appengine,!ppc64,!ppc64le
package isatty
import (
"syscall"
"unsafe"
)
const ioctlReadTermios = syscall.TCGETS
// IsTerminal return true if the file descriptor is terminal.
func IsTerminal(fd uintptr) bool {
var termios syscall.Termios
_, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
return err == 0
}