Mercurial > hg
changeset 32081:a6865b35a10d stable
help: use mercurial as a subject of colorization and pagination
Now, colorization and pagination are in Mercurial core.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 01 May 2017 05:35:57 +0900 |
parents | fcddcf442e4f |
children | 202b86a509e0 |
files | mercurial/help/color.txt mercurial/help/config.txt mercurial/help/pager.txt |
diffstat | 3 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/help/color.txt Tue Apr 25 16:50:01 2017 +0200 +++ b/mercurial/help/color.txt Mon May 01 05:35:57 2017 +0900 @@ -119,7 +119,7 @@ Custom colors ============= -Because there are only eight standard colors, this module allows you +Because there are only eight standard colors, Mercurial allows you to define color names for other color slots which might be available for your terminal type, assuming terminfo mode. For instance::
--- a/mercurial/help/config.txt Tue Apr 25 16:50:01 2017 +0200 +++ b/mercurial/help/config.txt Mon May 01 05:35:57 2017 +0900 @@ -414,16 +414,15 @@ ``mode`` String: control the method used to output color. One of ``auto``, ``ansi``, - ``win32``, ``terminfo`` or ``debug``. In auto mode the color extension will + ``win32``, ``terminfo`` or ``debug``. In auto mode, Mercurial will use ANSI mode by default (or win32 mode on Windows) if it detects a terminal. Any invalid value will disable color. ``pagermode`` - String: optinal override of ``color.mode`` used with pager (from the pager - extensions). + String: optinal override of ``color.mode`` used with pager. On some systems, terminfo mode may cause problems when using - color with the pager extension and less -R. less with the -R option + color with ``less -R`` as a pager program. less with the -R option will only display ECMA-48 color codes, and terminfo mode may sometimes emit codes that less doesn't understand. You can work around this by either using ansi mode (or auto mode), or by using less -r (which will @@ -431,8 +430,7 @@ codes). On some systems (such as MSYS in Windows), the terminal may support - a different color mode than the pager (activated via the "pager" - extension). + a different color mode than the pager program. ``commands`` ------------
--- a/mercurial/help/pager.txt Tue Apr 25 16:50:01 2017 +0200 +++ b/mercurial/help/pager.txt Mon May 01 05:35:57 2017 +0900 @@ -6,7 +6,7 @@ [pager] pager = less -FRX -If no pager is set, the pager extensions uses the environment variable +If no pager is set, Mercurial uses the environment variable $PAGER. If neither pager.pager, nor $PAGER is set, a default pager will be used, typically `less` on Unix and `more` on Windows.