fix: properly restore cooked mode in windows

This commit is contained in:
Sean Sullivan authored and Wez Furlong committed 2022-06-23 13:01:49 -07:00
1 parent d7b1ade1ac
commit e633d897dc
1 file changed
+1 -1
+1 -1
View File
@@ -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,