-
-
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] Panel borders broken if using a styled console as renderable #3252
Comments
You are capturing rendered output, which will have escape sequences in them. Rich won't decode these escapes sequences by default. You could use |
@willmcgugan thank you! That fixed it, I could not make the connection. For anyone else reading: |
I hope we solved your problem. If you like using Rich, you might also enjoy Textual |
Not the place to ask but would it be possible to call console's smart highlighting in another renderable, e.g. a table cell without rendering a console inside ? |
Describe the bug
I created a new renderable based on console, to show recent logs (like tail -f) inside a layout panel. A full example follows:
When rich_console yields styled lines (styles=True in export_text()) , then Panel borders get broken. Padding the yielded string does not seem to help.
Screenshot:
Another example with variable length lines:
Platform
Linux, Rich 13.7.0, python 3.10, terminal iTerm on MacOS
The text was updated successfully, but these errors were encountered: