From dff14daea82bc26fd4aa4fe4794a51d91500404e Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 12 Sep 2020 14:36:17 +0100 Subject: [PATCH] docs --- docs/source/console.rst | 1 + 1 file changed, 1 insertion(+) 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 ------------------