Is there any way to print '\b' with Rich? #1230
-
If I want to print '\b' with Rich, what should I do? print("Something here ???", end='', flush=True)
print("\b\b\b!!!") It should print:
But when I using Rich: from rich import print
print("Something here ???", end='', flush=True)
print("\b\b\b!!!") I got:
Is it an unsupported feature? |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
May 12, 2021
Replies: 1 comment 1 reply
-
Rich will strip out some control codes because they break formatting. If you want dynamically updating output have a look at Status or Live in the docs. If want to bypass rich and write directly to stdout you can call |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
CKylinMC
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rich will strip out some control codes because they break formatting. If you want dynamically updating output have a look at Status or Live in the docs.
If want to bypass rich and write directly to stdout you can call
console.file.write