1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-08-03 03:50:27 +00:00

vendor: switch to go modules and update deps

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2019-11-12 09:28:03 -05:00
parent 8b6de6073c
commit 7ce6c9c696
47 changed files with 39 additions and 5586 deletions

View file

@ -1,18 +0,0 @@
// +build darwin freebsd openbsd netbsd dragonfly
// +build !appengine
package isatty
import (
"syscall"
"unsafe"
)
const ioctlReadTermios = syscall.TIOCGETA
// 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
}