Debian Codegraph @

terminal_check_unix.go

raw symbols SCIP
1 // +build linux aix zos
2 // +build !js
3
4 package logrus
5
6 import "golang.org/x/sys/unix"
7
8 const ioctlReadTermios = unix.TCGETS
9
10 func isTerminal(fd int) bool {
11 _, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
12 return err == nil
13 }