Replies: 1 comment
-
https://rich.readthedocs.io/en/latest/console.html#capturing-output |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, we may have a RichTree object
Now, it is certained that we can print the object on the console by
console = Console(); console.print(root)
.But that's not what I want, I want to find somekind of
to_string
method of Tree, I want to know the markup of colors and other formats ofroot
.I want to see the str like "[bold green]Processing[/bold green]" with "[bold green]".
Once I have the string markup, I can do automatic processing on that.
Beta Was this translation helpful? Give feedback.
All reactions