Repository: crossterm-rs/crossterm (language: rust)

Issue:
Error on Windows PowerShell with event-read example
**Describe the bug**
An error happens when the `Esc` key is pressed on Windows

**To Reproduce**
Steps to reproduce the behavior:
1. Open a Windows Powershell
2. Run `cargo run --example event-read`
3. Press `Esc`
4. See error:

```sh
> cargo run --example event-read
    Finished dev [unoptimized + debuginfo] target(s) in 0.22s
     Running `target\debug\examples\event-read.exe`
Blocking read()
 - Keyboard, mouse, focus and terminal resize events enabled
 - Hit "c" to print current cursor position
 - Use Esc to quit

Event: Key(KeyEvent { code: Enter, modifiers: KeyModifiers(0x0), kind: Release, state: KeyEventState(0x0) })
Event: Key(KeyEvent { code: Esc, modifiers: KeyModifiers(0x0), kind: Press, state: KeyEventState(0x0) })
Error: Custom { kind: Unsupported, error: "Keyboard progressive enhancement not implemented for the legacy Windows API." }
error: process didn't exit successfully: `target\debug\examples\event-read.exe` (exit code: 1)
```

**Expected behavior**
`Esc` should quit without error.

**OS**
 - Windows 10

**Terminal/Console**
 - Windows Powershell



Discussion / hints:

Fix patch:
diff --git a/examples/event-read.rs b/examples/event-read.rs
index 633d1583a..aaf74fe21 100644
--- a/examples/event-read.rs
+++ b/examples/event-read.rs
@@ -104,7 +104,6 @@ fn main() -> io::Result<()> {
     execute!(
         stdout,
         DisableBracketedPaste,
-        PopKeyboardEnhancementFlags,
         DisableFocusChange,
         DisableMouseCapture
     )?;


Test patch: