diff --git a/docs/source/console.rst b/docs/source/console.rst index 05a3a653..ca926709 100644 --- a/docs/source/console.rst +++ b/docs/source/console.rst @@ -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 ------------------