1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-15 07:43:35 +00:00

vendor: add github.com/sirupsen/logrus

This commit is contained in:
justinalin
2019-07-26 08:53:58 +08:00
committed by Nick Craig-Wood
parent ccc416e62b
commit a3449bda30
33 changed files with 2853 additions and 0 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
}