Add note about MANPAGER environment variable to docs

This commit is contained in:
Darren Burns 2022-01-27 16:21:14 +00:00
parent 09f2fa8710
commit 57acc6f4bc
1 changed files with 6 additions and 6 deletions

View File

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