aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattn/go-isatty/isatty_linux.go
diff options
context:
space:
mode:
authorHackyMiner <hackyminer@gmail.com>2018-09-29 22:15:39 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-29 22:15:39 +0800
commit44eb69561a32c1b1e5345b5872e7de69fff936c2 (patch)
tree0eefc0ded63fbf5c481b6ea845b6fdadf5a123b9 /vendor/github.com/mattn/go-isatty/isatty_linux.go
parentd9e324a331788959bb7fb7f388383b1cad4ca65b (diff)
downloadgo-tangerine-44eb69561a32c1b1e5345b5872e7de69fff936c2.tar
go-tangerine-44eb69561a32c1b1e5345b5872e7de69fff936c2.tar.gz
go-tangerine-44eb69561a32c1b1e5345b5872e7de69fff936c2.tar.bz2
go-tangerine-44eb69561a32c1b1e5345b5872e7de69fff936c2.tar.lz
go-tangerine-44eb69561a32c1b1e5345b5872e7de69fff936c2.tar.xz
go-tangerine-44eb69561a32c1b1e5345b5872e7de69fff936c2.tar.zst
go-tangerine-44eb69561a32c1b1e5345b5872e7de69fff936c2.zip
internal/debug: support color terminal for cygwin/msys2 (#17740)
- update go-colorable, go-isatty, go-runewidth packages - use go-isatty instead of log/term and remove log/term package
Diffstat (limited to 'vendor/github.com/mattn/go-isatty/isatty_linux.go')
-rw-r--r--vendor/github.com/mattn/go-isatty/isatty_linux.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/vendor/github.com/mattn/go-isatty/isatty_linux.go b/vendor/github.com/mattn/go-isatty/isatty_linux.go
index 9d24bac1d..1f4002617 100644
--- a/vendor/github.com/mattn/go-isatty/isatty_linux.go
+++ b/vendor/github.com/mattn/go-isatty/isatty_linux.go
@@ -1,5 +1,5 @@
// +build linux
-// +build !appengine
+// +build !appengine,!ppc64,!ppc64le
package isatty
@@ -16,3 +16,9 @@ func IsTerminal(fd uintptr) bool {
_, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
return err == 0
}
+
+// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
+// terminal. This is also always false on this environment.
+func IsCygwinTerminal(fd uintptr) bool {
+ return false
+}