We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When using rich.print('foo') during rich.progress, the text gets displayed above the progress pars, as expected:
rich.print('foo')
rich.progress
foo foo foo foo foo Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
When doing the same with rich.print(''), it works as expected too:
rich.print('')
Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
However, when doing rich.print() without any arguments, the progress bar gets repainted:
rich.print()
Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:-- Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:-- Working... ━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20% -:--:-- Working... ━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━ 40% 0:00:02 Working... ━━━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━ 60% 0:00:02 Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
or with some more colors:
To Reproduce
Run this:
import time import rich import rich.progress for n in rich.progress.track(range(5)): # rich.print('foo') # rich.print('') rich.print() time.sleep(0.5)
Platform What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Arch Linux with Kitty
Diagnose I may ask you to cut and paste the output of the following commands. It may save some time if you do it now.
python -m rich.diagnose python -m rich._windows pip freeze | grep rich
╭────────────────────── <class 'rich.console.Console'> ───────────────────────╮ │ A high level console interface. │ │ │ │ ╭─────────────────────────────────────────────────────────────────────────╮ │ │ │ <console width=79 ColorSystem.TRUECOLOR> │ │ │ ╰─────────────────────────────────────────────────────────────────────────╯ │ │ │ │ color_system = 'truecolor' │ │ encoding = 'utf-8' │ │ file = <_io.TextIOWrapper name='<stdout>' mode='w' │ │ encoding='utf-8'> │ │ height = 16 │ │ is_dumb_terminal = False │ │ is_interactive = True │ │ is_jupyter = False │ │ is_terminal = True │ │ legacy_windows = False │ │ no_color = False │ │ options = ConsoleOptions(size=ConsoleDimensions(width=79, │ │ height=16), legacy_windows=False, min_width=1, │ │ max_width=79, is_terminal=True, encoding='utf-8', │ │ justify=None, overflow=None, no_wrap=False, │ │ highlight=None, height=None) │ │ quiet = False │ │ record = False │ │ safe_box = True │ │ size = ConsoleDimensions(width=79, height=16) │ │ soft_wrap = False │ │ stderr = False │ │ style = None │ │ tab_size = 8 │ │ width = 79 │ ╰─────────────────────────────────────────────────────────────────────────────╯
platform="Linux" WindowsConsoleFeatures(vt=False, truecolor=False)
rich @ git+https://github.com/willmcgugan/rich.git@1c1d72ccad965a41500253680c73e6606924cd13
(current git master; but also with 9.11.1)
The text was updated successfully, but these errors were encountered:
Yep, confirmed. Fix soon. In the meantime, console.print('\n') will probably work.
console.print('\n')
Sorry, something went wrong.
Please try 9.12.0
Should be fix. Reopen if you still have problems.
Apologies for the radio silence - indeed things look great after upgrading to 9.12.3! Thanks for the quick fix! 🎉
No branches or pull requests
Describe the bug
When using
rich.print('foo')
duringrich.progress
, the text gets displayed above the progress pars, as expected:When doing the same with
rich.print('')
, it works as expected too:However, when doing
rich.print()
without any arguments, the progress bar gets repainted:or with some more colors:
To Reproduce
Run this:
Platform
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Arch Linux with Kitty
Diagnose
I may ask you to cut and paste the output of the following commands. It may save some time if you do it now.
(current git master; but also with 9.11.1)
The text was updated successfully, but these errors were encountered: