We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8bdbc7b + c1b6154 commit 9b3cddeCopy full SHA for 9b3cdde
terminal_check_solaris.go
@@ -0,0 +1,11 @@
1
+package logrus
2
+
3
+import (
4
+ "golang.org/x/sys/unix"
5
+)
6
7
+// IsTerminal returns true if the given file descriptor is a terminal.
8
+func isTerminal(fd int) bool {
9
+ _, err := unix.IoctlGetTermio(fd, unix.TCGETA)
10
+ return err == nil
11
+}
0 commit comments