Patchwork [3,of,3,V3] help: update the color documentation for Windows 10 ANSI support

login
register
mail settings
Submitter Matt Harbison
Date May 31, 2017, 2:50 a.m.
Message ID <8f5d6b7df8bf0c202694.1496199015@Envy>
Download mbox | patch
Permalink /patch/21088/
State Accepted
Headers show

Comments

Matt Harbison - May 31, 2017, 2:50 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1495506779 14400
#      Mon May 22 22:32:59 2017 -0400
# Node ID 8f5d6b7df8bf0c2026945b1a95b26af7c5aa67b0
# Parent  d0dcc7b57bab42b1e79931ef5cab4ba66a0cc58e
help: update the color documentation for Windows 10 ANSI support

It looks like only the initial release of Windows 10 lacked support for this
functionality. [1][2]  Since that build is no longer supported, I didn't bother
getting very specific, to keep the help text less cluttered.

[1] https://github.com/symfony/symfony/issues/17499#issuecomment-243481052
[2] https://en.wikipedia.org/wiki/Windows_10_version_history

Patch

diff --git a/mercurial/help/color.txt b/mercurial/help/color.txt
--- a/mercurial/help/color.txt
+++ b/mercurial/help/color.txt
@@ -22,7 +22,8 @@ 
   The default pager on Windows does not support color, so enabling the pager
   will effectively disable color.  See :hg:`help config.ui.paginate` to disable
   the pager.  Alternately, MSYS and Cygwin shells provide `less` as a pager,
-  which can be configured to support ANSI color mode.
+  which can be configured to support ANSI color mode.  Windows 10 natively
+  supports ANSI color mode.
 
 Mode
 ====
diff --git a/mercurial/help/config.txt b/mercurial/help/config.txt
--- a/mercurial/help/config.txt
+++ b/mercurial/help/config.txt
@@ -415,7 +415,7 @@ 
 ``mode``
     String: control the method used to output color. One of ``auto``, ``ansi``,
     ``win32``, ``terminfo`` or ``debug``. In auto mode, Mercurial will
-    use ANSI mode by default (or win32 mode on Windows) if it detects a
+    use ANSI mode by default (or win32 mode prior to Windows 10) if it detects a
     terminal. Any invalid value will disable color.
 
 ``pagermode``