mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e1e544c8c6
full diff: https://github.com/sirupsen/logrus/compare/v1.4.2...v1.6.0 - Ability to DisableHTMLEscape when using the JSON formatter - Support/fixes for go 1.14 - Many many bugfixes - Add flag to disable quotes in TextFormatter Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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
|
|
}
|