aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/term/term_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/term/term_windows.go')
-rw-r--r--vendor/golang.org/x/term/term_windows.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/golang.org/x/term/term_windows.go b/vendor/golang.org/x/term/term_windows.go
index 465f560..df6bf94 100644
--- a/vendor/golang.org/x/term/term_windows.go
+++ b/vendor/golang.org/x/term/term_windows.go
@@ -26,6 +26,7 @@ func makeRaw(fd int) (*State, error) {
return nil, err
}
raw := st &^ (windows.ENABLE_ECHO_INPUT | windows.ENABLE_PROCESSED_INPUT | windows.ENABLE_LINE_INPUT | windows.ENABLE_PROCESSED_OUTPUT)
+ raw |= windows.ENABLE_VIRTUAL_TERMINAL_INPUT
if err := windows.SetConsoleMode(windows.Handle(fd), raw); err != nil {
return nil, err
}