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

Add FAQ for redrawing after other output #559

Open
joshka opened this issue Apr 10, 2024 · 0 comments
Open

Add FAQ for redrawing after other output #559

joshka opened this issue Apr 10, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@joshka
Copy link
Member

joshka commented Apr 10, 2024

https://discord.com/channels/1070692720437383208/1072907135664529508/1227559342077775892

In sync code, is it possible to somehow trigger a full redraw of everything. I'm restoring, launching external command and then initializing the TUI again.. It kinda works but only draws when I do something that changes something

Got it by running terminal.clear() before drawing

FAQ should be a smaller question. Answer should expand on why this is necessary (terminal double buffering) and link to the concepts page that explains this in detail. https://ratatui.rs/concepts/rendering/under-the-hood/

@joshka joshka added the good first issue Good for newcomers label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant