mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 01:58:24 +00:00
rearrange docs
This commit is contained in:
parent
1d0d12b550
commit
c8fac003f0
1 changed files with 9 additions and 10 deletions
|
@ -69,6 +69,15 @@ The :meth:`~rich.console.Console.log` methods offers the same capabilities as pr
|
|||
|
||||
To help with debugging, the log() method has a ``log_locals`` parameter. If you set this to ``True``, Rich will display a table of local variables where the method was called.
|
||||
|
||||
Low level output
|
||||
----------------
|
||||
|
||||
In additional to :meth:`~rich.console.Console.print` and :meth:`~rich.console.Console.log`, Rich has a :meth:`~rich.console.Console.out` method which provides a lower-level way of writing to the terminal. The out() method converts all the positional arguments to strings and won't pretty print, word wrap, or apply markup to the output, but can apply a basic style and will optionally do highlighting.
|
||||
|
||||
Here's an example::
|
||||
|
||||
>>> console.out("Locals", locals())
|
||||
|
||||
|
||||
Rules
|
||||
-----
|
||||
|
@ -101,16 +110,6 @@ You can change the spinner animation via the ``spinner`` parameter. Run the foll
|
|||
python -m rich.spinner
|
||||
|
||||
|
||||
Low level output
|
||||
----------------
|
||||
|
||||
In additional to :meth:`~rich.console.Console.print` and :meth:`~rich.console.Console.log`, Rich has a :meth:`~rich.console.Console.out` method which provides a lower-level way of writing to the terminal. The out() method converts all the positional arguments to strings and won't pretty print, word wrap, or apply markup to the output, but can apply a basic style and will optionally do highlighting.
|
||||
|
||||
Here's an example::
|
||||
|
||||
>>> console.out("Locals", locals())
|
||||
|
||||
|
||||
Justify / Alignment
|
||||
-------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue