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

Investigate screen flickering on WSL/Windows Terminal #121

Merged
merged 4 commits into from
Dec 17, 2023

Conversation

AMythicDev
Copy link
Owner

@EiEddie can you test your code from this branch?. It will print out the events on the screen before handling them on the screen. This will help us investigate all the events that the event reader is reading.

@EiEddie
Copy link

EiEddie commented Dec 17, 2023

I test using the new code, and find it always print

[src/core/init.rs:329] inp = Ignore

when I moving my mouse.

Further, I found that everything I do that can make program to get an Ignore event, like press a useless key, would cause the screen to flicker. Flickering when mouse moving is because moving of mouse produce tons of Ignore event, and make program incessant flashing.

@AMythicDev
Copy link
Owner Author

Can you check if the latest commit fixed the problem?

@EiEddie
Copy link

EiEddie commented Dec 17, 2023

Yes!
Perfect, it does not flicker anymore.

@AMythicDev
Copy link
Owner Author

The solution I pushed now is hacky. It will get cleaned up when I merge #119. Anyways I am merging this.

@AMythicDev AMythicDev merged commit e863d9d into main Dec 17, 2023
6 checks passed
@AMythicDev
Copy link
Owner Author

Merged. Thanks @EiEddie for all your help.

AMythicDev added a commit that referenced this pull request Dec 18, 2023
The flickering was caused due to screen being redrawn even on `InputEvent::Ignore` events

Closes #120
@AMythicDev
Copy link
Owner Author

@EiEddie I have pushed a patch release containing these changes. You can get it from crates.io.

@AMythicDev AMythicDev deleted the fix/screen-flicker branch December 18, 2023 15:42
AMythicDev added a commit that referenced this pull request Dec 18, 2023
The flickering was caused due to screen being redrawn even on `InputEvent::Ignore` events

Closes #120
@AMythicDev AMythicDev added the B: generic General bugs label Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B: generic General bugs
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants