aboutsummaryrefslogtreecommitdiffstats
path: root/kube2msb/src/vendor/github.com/Sirupsen/logrus/terminal_notwindows.go
diff options
context:
space:
mode:
Diffstat (limited to 'kube2msb/src/vendor/github.com/Sirupsen/logrus/terminal_notwindows.go')
-rw-r--r--kube2msb/src/vendor/github.com/Sirupsen/logrus/terminal_notwindows.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/kube2msb/src/vendor/github.com/Sirupsen/logrus/terminal_notwindows.go b/kube2msb/src/vendor/github.com/Sirupsen/logrus/terminal_notwindows.go
deleted file mode 100644
index 276447b..0000000
--- a/kube2msb/src/vendor/github.com/Sirupsen/logrus/terminal_notwindows.go
+++ /dev/null
@@ -1,21 +0,0 @@
-// Based on ssh/terminal:
-// Copyright 2011 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// +build linux,!appengine darwin freebsd
-
-package logrus
-
-import (
- "syscall"
- "unsafe"
-)
-
-// IsTerminal returns true if the given file descriptor is a terminal.
-func IsTerminal() bool {
- fd := syscall.Stdout
- var termios Termios
- _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
- return err == 0
-}