mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-13 08:30:04 +01:00
Print colored output for fetched package
This commit is contained in:
parent
c28ae9034d
commit
c2599b641f
289 changed files with 215085 additions and 2 deletions
17
vendor/github.com/mattn/go-isatty/isatty_android.go
generated
vendored
Normal file
17
vendor/github.com/mattn/go-isatty/isatty_android.go
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// +build android
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue