Color extension and macOS 10.12.4

Gregory Szorc gregory.szorc at gmail.com
Fri Apr 21 18:45:57 EDT 2017


Per IRC conversation, this is the default pager (`more`) not liking ANSI
escape sequences. On OS X, you need to pass -r or -R to have it emit the
sequences that result in colors being printed. The problem exists in both
Terminal.app and iTerm2.app.

Jun is preparing a patch.

On Fri, Apr 21, 2017 at 3:32 PM, Gregory Szorc <gregory.szorc at gmail.com>
wrote:

> I can reproduce this on 10.12.4 with HGRCPATH= and with *both*
> /usr/bin/python and Homebrew's Python.
>
> TERM=xterm-256color
> CLICOLOR=1
>
> My PS1 has color codes set and they are rendering correctly.
>
> On Fri, Apr 21, 2017 at 2:39 PM, Jun Wu <quark at fb.com> wrote:
>
>> What does "env" output for you?
>>
>> Excerpts from André Sintzoff's message of 2017-04-21 23:37:10 +0200:
>> > Hello,
>> >
>> > Starting to use hg 4.2-rc, I discover that the color extension is not
>> > working as expected on my machine running Terminal.app (macOS
>> > 10.12.4).
>> >
>> > For instance the output of hg log on the revision enabling the
>> extension:
>> >
>> > $ hg log -r .
>> > ESC[0;33mchangeset:   32053:57042e91521aESC[0m
>> > user:        Pierre-Yves David <pierre-yves.david at ens-lyon.org>
>> > date:        Sun Apr 16 02:32:51 2017 +0200
>> > summary:     color: turn on by default (but for windows)
>> >
>> > As previously, I never enabled this extension, I'm supposing this
>> > issue is not a new one.
>> >
>> > If somebody is using the color extension with Terminal.app, I'm
>> > interested to get the configuration to be set in .hgrc file.
>> >
>> > Thanks
>> >
>> > André
>> _______________________________________________
>> Mercurial-devel mailing list
>> Mercurial-devel at mercurial-scm.org
>> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170421/92570572/attachment.html>


More information about the Mercurial-devel mailing list