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 output buffering to avoid flickering #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ikirill
Copy link

@ikirill ikirill commented Aug 5, 2022

I was getting quite a bit of flickering, especially when displaying values under the progress bar, so this patch tries to address that by putting all the output into an IOBuffer before writing it all at once.

In particular, the cursor was constantly moving back and forth (visibly!) between the beginning and the end of the line.

Don’t write directly to stdout, it is not buffered and a sufficiently
fast terminal will show partial progress bar writes.
@timholy
Copy link
Owner

timholy commented Feb 20, 2023

Let's re-run the tests here.

@timholy timholy closed this Feb 20, 2023
@timholy timholy reopened this Feb 20, 2023
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