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

progress bar doesn't erase previously printed characters if new output length < old output length #37

Closed
kotoroshinoto opened this issue May 26, 2019 · 2 comments · Fixed by #38

Comments

@kotoroshinoto
Copy link

progress bar doesn't erase previously printed characters if new output length < old output length

this in my experience, has happened when the remaining/elapsed timer text changes and near or at the end of the processing, there are several fewer characters than there were in the middle of the processing.

Perhaps you should track maximum length, or last printed length and use that to erase the extra characters by printing extra whitespace characters at the end or something.

@kotoroshinoto
Copy link
Author

image
it looks like this, see beyond the ~00s there is a 0ss left over from previous prints.
image
in this case its showing an extra 14s beyond the last print.

@psolymos
Copy link
Owner

Interesting. Thanks for reporting, I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants