[Bug 5614] New: Colorized output is rendered as ANSI literals

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Mon Jul 3 17:50:19 UTC 2017


https://bz.mercurial-scm.org/show_bug.cgi?id=5614

            Bug ID: 5614
           Summary: Colorized output is rendered as ANSI literals
           Product: Mercurial
           Version: 4.2.1
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: dgc.hg at bikeshed.us
                CC: mercurial-devel at mercurial-scm.org

I've just updated to a recent hg from 2.9. I didn't expect color output, so I
didn't do anything to prepare for the change. My color output all appears as
ANSI literals: ESC[34mexampleESC[0m. This happens, presumably, because my
environ['PAGER'] = 'less' with no qualifiers to render color, and pagination
was also turned on by default.

I expect PAGER=less to be somewhat common. Perhaps all the latest distros set
PAGER="less -FRX" now by default, but some configs are older than the latest
distros.

I've solved this by disabling color and pagination like god intended, but hg
core could do more to detect whether a bare less is being used, and augment
with -R.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list