qrz/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
Paul Lecuq 5ffec3f796
Some checks failed
continuous-integration/drone/push Build is failing
delete fts from config database, updated vendors
2020-08-16 15:49:31 +02:00

14 lines
227 B
Go

// +build linux aix
// +build !js
package logrus
import "golang.org/x/sys/unix"
const ioctlReadTermios = unix.TCGETS
func isTerminal(fd int) bool {
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
return err == nil
}