Explorar o código

Add missing method

Yasuhiro Matsumoto %!s(int64=6) %!d(string=hai) anos
pai
achega
43386f24a3
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      isatty_android.go

+ 6 - 0
isatty_android.go

@@ -15,3 +15,9 @@ func IsTerminal(fd uintptr) bool {
 	_, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
 	_, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
 	return err == 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
+}