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

Handle terminal resize gracefully #49

Open
Samyak2 opened this issue Dec 4, 2022 · 0 comments
Open

Handle terminal resize gracefully #49

Samyak2 opened this issue Dec 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Samyak2
Copy link
Owner

Samyak2 commented Dec 4, 2022

What?

When the terminal is resized in the middle of a typing test, the text wraps around weirdly. A ctrl-r fixes this but it would be nice to not interrupt the test.

Although, a terminal resize in the middle of a test might be unlikely.

How?

Termion, the library toipe uses for terminal rendering, doesn't seem to have an event for resizes: https://gitlab.redox-os.org/redox-os/termion/-/issues/151

So this will be tricky to implement. I'm not sure how to do this yet

@Samyak2 Samyak2 added the bug Something isn't working label Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant