mirror of
https://github.com/docker/cli.git
synced 2026-09-28 02:06:53 -04:00
full diff: https://github.com/sirupsen/logrus/compare/v1.7.0...v1.8.1 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
231 B
Go
14 lines
231 B
Go
// +build linux aix zos
|
|
// +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
|
|
}
|