[PATCH] color: add support for terminfo-based attributes and color

Dirkjan Ochtman dirkjan at ochtman.nl
Wed Aug 26 05:58:32 CDT 2009


On Sun, Aug 23, 2009 at 10:06, Danek Duvall<duvall at comfychair.org> wrote:
> I really wanted to be able to use specific colors on my 256-color xterm, so
> I whipped up some changes to allow you to use any color terminfo can
> address for a terminal.  The attached patch allows you to turn off "ecma48"
> to use the new code.  It also allows you to define color names, like
>
>    [color]
>    ecma48 = False
>    color.pink = 207
>    diff.hunk = pink
>
> If there's interest, I can make the appropriate changes to the module
> docstring, too.

Brodie, what do you think of these?
Danek, please use the patchbomb extension to send patches to the list next time.

Thanks for looking at this,

Dirkjan



More information about the Mercurial-devel mailing list