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

Fix examples for crossterm on windows #726

Merged
merged 1 commit into from
Jun 21, 2023
Merged

Fix examples for crossterm on windows #726

merged 1 commit into from
Jun 21, 2023

Conversation

lesleyrs
Copy link
Contributor

@lesleyrs lesleyrs commented Apr 7, 2023

Hi, crossterm recently added release events for windows but that means that whenever checking for events you get double of them. This breaks almost all examples.

It's actually even worse because powershell has some kind of bug where it sends a delayed release event when pressing enter in the command line, and some examples immediately close because of this.

This fixes all of that by just ignoring all release events. crossterm-rs/crossterm#745

Side note: please mention somewhere that you have to be inside the cursive/cursive folder in order to run examples with another backend, that confused me so much for a second time when using this because you get confusing errors about ncurses.

@lesleyrs
Copy link
Contributor Author

lesleyrs commented Apr 8, 2023

Closing this because it's being reverted crossterm-rs/crossterm#778

@lesleyrs lesleyrs closed this Apr 8, 2023
@lesleyrs lesleyrs reopened this Apr 8, 2023
@lesleyrs
Copy link
Contributor Author

@gyscos ignore the close, this is ready to be merged. It works even if the crossterm PR is merged.

@gyscos gyscos merged commit 955baab into gyscos:main Jun 21, 2023
@gyscos
Copy link
Owner

gyscos commented Jun 21, 2023

Thanks for the work!

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

Successfully merging this pull request may close these issues.

2 participants