This commit is contained in:
Will McGugan 2020-09-12 14:36:17 +01:00
parent 5db11e439e
commit dff14daea8
1 changed files with 1 additions and 0 deletions

View File

@ -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")
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
------------------