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

Use ANSI escape to clear to end of line #729

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

Conversation

toddlipcon
Copy link

This switches from trying to remember the length of the previous output,
and instead uses an ANSI sequence to clear to the end of the line.

This fixes issue #728

This switches from trying to remember the length of the previous output,
and instead uses an ANSI sequence to clear to the end of the line.

This fixes issue tqdm#728
@casperdcl
Copy link
Sponsor Member

ah but will this work on all systems? My guess is anything that doesn't support nested bars will also stop supporting single bars if we merge this.

@casperdcl casperdcl self-assigned this May 9, 2019
@casperdcl casperdcl added p4-enhancement-future 🧨 On the back burner help wanted 🙏 We need you (discussion or implementation) p5-wont-fix ☮ Sorry labels May 9, 2019
@toddlipcon
Copy link
Author

Which systems did you have in mind? Maybe we can switch this based on termcap info or something? Without this, I get junk output on my screen on LInux/gnome-terminal.

@casperdcl
Copy link
Sponsor Member

vis nested progress bars under https://github.com/tqdm/tqdm/#faq-and-known-issues

@casperdcl
Copy link
Sponsor Member

thanks for your issues and PRs btw, just not sure about this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted 🙏 We need you (discussion or implementation) p4-enhancement-future 🧨 On the back burner p5-wont-fix ☮ Sorry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants