mirror of https://github.com/Textualize/rich.git
Add note about MANPAGER environment variable to docs
This commit is contained in:
parent
09f2fa8710
commit
57acc6f4bc
|
@ -321,7 +321,7 @@ You can page output from a Console by calling :meth:`~rich.console.Console.pager
|
|||
Since the default pager on most platforms don't support color, Rich will strip color from the output. If you know that your pager supports color, you can set ``styles=True`` when calling the :meth:`~rich.console.Console.pager` method.
|
||||
|
||||
.. note::
|
||||
Rich will use the ``PAGER`` environment variable to get the pager command. On Linux and macOS you can set this to ``less -r`` to enable paging with ANSI styles.
|
||||
Rich will look at ``MANPAGER`` then the ``PAGER`` environment variables (``MANPAGER`` takes priority) to get the pager command. On Linux and macOS you can set one of these to ``less -r`` to enable paging with ANSI styles.
|
||||
|
||||
Alternate screen
|
||||
----------------
|
||||
|
|
Loading…
Reference in New Issue