9466dd4e5a
Fixes #3223 by bumping logrus to v1.6.0, which in turn bumps github.com/konsorten/go-windows-terminal-sequences to v1.0.3 wherein the fix to bad pointer is found. Signed-off-by: Andreas Hassing <andreas@famhassing.dk>
13 lines
259 B
Go
13 lines
259 B
Go
// +build darwin dragonfly freebsd netbsd openbsd
|
|
// +build !js
|
|
|
|
package logrus
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
const ioctlReadTermios = unix.TIOCGETA
|
|
|
|
func isTerminal(fd int) bool {
|
|
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
|
|
return err == nil
|
|
}
|