-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[BUG] Status erases existing terminal lines after displaying new lines #3011
Comments
I think the issue is in starting and stopping the status multiple times. It was only intended to be started once. This seems to give the intended result: import time
from rich.console import Console
def main():
console = Console()
with console.status('') as status:
status.update('running\nextra\ncontext')
time.sleep(2)
status.update('running again')
time.sleep(2) |
Is there a way to support that? My application has a global status object that is set up based on config that multiple callers can borrow to use |
It may be. Status ultimately uses the Live class. It probably wouldn't be too much work to make start and stop repeatable. |
That would be really awesome if that was possible to make our use case work! |
Has there been any update on this? |
Afraid not. Busy on the Textual side. Could you give me an example of The API you would expect? |
I'm going to close this now actually, here is the Thank you! |
I hope we solved your problem. If you like using Rich, you might also enjoy Textual |
Describe the bug
Platform
Click to expand
The text was updated successfully, but these errors were encountered: