mirror of https://github.com/Textualize/rich.git
docs
This commit is contained in:
parent
5db11e439e
commit
dff14daea8
|
@ -64,6 +64,7 @@ There may be situations where you want to capture the output from a Console rath
|
||||||
console.print("[bold red]Hello[/] World")
|
console.print("[bold red]Hello[/] World")
|
||||||
str_output = console.file.getvalue()
|
str_output = console.file.getvalue()
|
||||||
|
|
||||||
|
You may also want to set ``force_terminal=True`` on the Console constructor if you want control codes for colour and style in the resulting string.
|
||||||
|
|
||||||
Terminal detection
|
Terminal detection
|
||||||
------------------
|
------------------
|
||||||
|
|
Loading…
Reference in New Issue