fix: properly restore cooked mode in windows
This commit is contained in:
1 parent
d7b1ade1ac
commit
e633d897dc
1 file changed
+1
-1
@@ -711,7 +711,7 @@ impl Terminal for WindowsTerminal {
|
||||
let mode = self.input_handle.get_input_mode()?;
|
||||
|
||||
self.input_handle.set_input_mode(
|
||||
(mode & !(ENABLE_WINDOW_INPUT | ENABLE_WINDOW_INPUT))
|
||||
(mode & !(ENABLE_MOUSE_INPUT | ENABLE_WINDOW_INPUT))
|
||||
| ENABLE_ECHO_INPUT
|
||||
| ENABLE_LINE_INPUT
|
||||
| ENABLE_PROCESSED_INPUT,
|
||||
|
||||
Reference in new issue
Block a user