Sign in
fuchsia
/
third_party
/
github.com
/
docker
/
docker
/
refs/heads/upstream/19.03
/
.
/
vendor
/
github.com
/
sirupsen
/
logrus
/
terminal_check_notappengine.go
blob: 7be2d87c59ca7c1f1caf9bf407a15adf68035f82 [
file
] [
log
] [
blame
]
// +build !appengine,!js,!windows
package logrus
import (
"io"
"os"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return isTerminal(int(v.Fd()))
default:
return false
}
}