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
227 B
Go
13 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
|
|
}
|