aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/crypto/ssh/terminal/util_windows.go')
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go b/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
index 8618955..6cb8a95 100644
--- a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
+++ b/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
@@ -26,7 +26,7 @@ type State struct {
26 mode uint32 26 mode uint32
27} 27}
28 28
29// IsTerminal returns true if the given file descriptor is a terminal. 29// IsTerminal returns whether the given file descriptor is a terminal.
30func IsTerminal(fd int) bool { 30func IsTerminal(fd int) bool {
31 var st uint32 31 var st uint32
32 err := windows.GetConsoleMode(windows.Handle(fd), &st) 32 err := windows.GetConsoleMode(windows.Handle(fd), &st)