aboutsummaryrefslogtreecommitdiffstats
path: root/log/term/terminal_solaris.go
diff options
context:
space:
mode:
Diffstat (limited to 'log/term/terminal_solaris.go')
-rw-r--r--log/term/terminal_solaris.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/log/term/terminal_solaris.go b/log/term/terminal_solaris.go
deleted file mode 100644
index 033c16324..000000000
--- a/log/term/terminal_solaris.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package term
-
-import "golang.org/x/sys/unix"
-
-// IsTty returns true if the given file descriptor is a terminal.
-func IsTty(fd uintptr) bool {
- _, err := unix.IoctlGetTermios(int(fd), unix.TCGETA)
- return err == nil
-}