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

Bar with residual characters #274

Open
catdev123 opened this issue Jun 4, 2024 · 1 comment
Open

Bar with residual characters #274

catdev123 opened this issue Jun 4, 2024 · 1 comment

Comments

@catdev123
Copy link

catdev123 commented Jun 4, 2024

Having this problem with a custom bar. At the end of the progress bar there are still some stats even after the bar is 100% complete.
image

Info: Running on Windows 10, Spyder 5.5.4, Python 3.11.8, alive_progress version 3.1.5

Sample code:

import time
just_cat_bar = animations.bar_factory('\N{cat}')
with alive_bar(100, bar=just_cat_bar, spinner=None, force_tty=True, dual_line=True, enrich_print=False) as bar:
    for i in range(100):
        time.sleep(.05)
        bar()
@rsalmei
Copy link
Owner

rsalmei commented Jun 19, 2024

Unfortunately, I can't do much to improve this. Windows historically causes problems for alive-progress.
I think Windows does not implement ANSI Escape Codes correctly, so I'd suggest avoiding dual_line, which is heavy on them.

You could also check if this IDE of yours is really interpreting these codes, PyCharm for instance disables it by default, we have to turn it on manually.

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

No branches or pull requests

2 participants