Skip to content

Add ProgressBar::force_draw#689

Merged
djc merged 2 commits intoconsole-rs:mainfrom
jaheba:force_draw
Feb 27, 2025
Merged

Add ProgressBar::force_draw#689
djc merged 2 commits intoconsole-rs:mainfrom
jaheba:force_draw

Conversation

@jaheba
Copy link
Copy Markdown
Contributor

@jaheba jaheba commented Jan 21, 2025

Allow users to force a redraw of the progress bar.

This should normally not be needed, since there are more idiomatic ways to ensure that the progress bar is up to date.

Also, I've noticed that other ways to enforce redrawing (.suspend()) can lead to flickering, while .force_draw() does not.

Adresses: #688

@djc djc merged commit 79ea085 into console-rs:main Feb 27, 2025
@djc
Copy link
Copy Markdown
Member

djc commented Feb 27, 2025

Thanks!

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