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 writeln to print without breaking pbr #62

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kpcyrd
Copy link

@kpcyrd kpcyrd commented Mar 15, 2018

I'm getting results that I need to print while the progress bar is on-screen. This currently breaks the progress bar. This patch also makes width() public which is needed to implement these sort of things outside of pbr.

@kpcyrd
Copy link
Author

kpcyrd commented Mar 16, 2018

FYI: I've changed this to a different approach that doesn't require .width() and uses \x1B[2K instead to clear the line. This allows me to use colors with .writeln. This patch is still needed because I can't call .draw() from outside and therefore can't use max_refresh_rate because .tick() may not redraw the progress bar after I've printed a line.

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.

None yet

1 participant