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

Rerender on resize #304

Merged
merged 2 commits into from
Jun 18, 2020
Merged

Rerender on resize #304

merged 2 commits into from
Jun 18, 2020

Conversation

vadimdemedes
Copy link
Owner

Fixes #153.

It works well when resizing up, but not so much with resizing down. Previous output doesn't get erased correctly, because when terminal shrinks, it also shrinks previous output, so log-update no longer knows how many lines to erase. I'm going to accept this tradeoff for now, because resizing down rarely works in any CLI with full-width UI.

@vadimdemedes vadimdemedes merged commit 155e1a0 into master Jun 18, 2020
@vadimdemedes vadimdemedes deleted the render-on-resize branch June 18, 2020 10:57
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.

Respond and reflow with terminal resize events
1 participant