-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Odd behavior where the progress bar deletes a printed line in terminal #254
Comments
Yes, that is odd indeed. Please, what happens if you force a print("this text will get deleted\n") |
Have you tried cmd prompt? \n works for me. In PowerShell the newline character is `n |
I used the below code from the first post and it works for me. I'm on Windows 11 Enterprise 22H2
|
Reproducible on my machine, changing dual_line to False also fixes it other than removing the lines raven mentioned. |
Thanks @jspilinek for the help! |
@Ravencentric I see you have (test-py3.11) in your cmd and powershell prompt. Maybe this is causing your issue? Here's my Python version and alive-progress version
|
That's just the python venv im using to isolate any other package from interfering > python --version
Python 3.11.5 > pip list
Package Version
-------------- -------
about-time 4.2.1
alive-progress 3.1.4
grapheme 0.6.0
pip 23.2.1
setuptools 68.1.2
wheel 0.41.2 |
If I remove
bar.text(f"{file_type}: {file.name}")
, then it works as expected:If I remove
file_type = "Folder" if file.is_dir() else "File"
, again it works:From what I can gather, evaluating anything in
file_type
from the above example causes this. Getting rid of either this orbar.text
fixes it at the cost of well not being able to do what I want. Same happens if I use any arbitrary function like:The text was updated successfully, but these errors were encountered: