Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Windows PowerShell with event-read example #842

Open
gwenn opened this issue Nov 7, 2023 · 0 comments
Open

Error on Windows PowerShell with event-read example #842

gwenn opened this issue Nov 7, 2023 · 0 comments

Comments

@gwenn
Copy link
Contributor

gwenn commented Nov 7, 2023

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:
> 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant