Update vendor for all new features

This commit is contained in:
Nicholas Thompson
2020-06-15 14:05:59 +02:00
parent 934c629a41
commit 1840fae1aa
551 changed files with 269828 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
package logrus
import (
"golang.org/x/sys/unix"
)
// IsTerminal returns true if the given file descriptor is a terminal.
func isTerminal(fd int) bool {
_, err := unix.IoctlGetTermio(fd, unix.TCGETA)
return err == nil
}