[thg] Color extension - Specify "bold" background
Steve Borho
steve at borho.org
Sat May 1 21:56:35 UTC 2010
On Sat, May 1, 2010 at 10:06 AM, Stanimir Stamenkov <s7an10 at netscape.net> wrote:
> Using the color extension:
>
> http://mercurial.selenic.com/wiki/ColorExtension
>
> One could specify bright variant of the foreground color using a
> "bold" modifier, like:
>
> [color]
> status.modified = blue bold
>
> Background color is specified like:
>
> status.removed = red bold blue_background
>
> Is it possible to specify a bright variant for the background color,
> too?
>
> I'm using Mercurial build from todays unstable TortoiseHg packages:
>
> http://bitbucket.org/tortoisehg/thg-winbuild/downloads
>
> on Windows.
Looks like there's a typo in color.py (introduced by me) in w32effects
'bold': FOREGROUND_INTENSITY,
.,,
'bold_background': FOREGROUND_INTENSITY,
That should be BACKGROUND_INTENSITY [1]. I'll push a fix for this in
a short bit.
--
Steve Borho
[1] http://msdn.microsoft.com/en-us/library/ms682088%28VS.85%29.aspx
More information about the Mercurial
mailing list