Valid values ββ- background and foreground - depend on the coloring mode that mercurial uses. You get maximum flexibility (?) When using the terminfo layout, in which case you usually have access to the xterm 256 color cube. This python script from Marius Gedminas will list all of them for you on your terminal (this is a shell-executable file starting with shebang, so you can just execute it directly - on a Unix'ish system). But to relieve you of this problem, I contacted the output below.
Before listing all the colors, here is a specific example of using this list in your .hgrc
file:
[extensions] color = [color] mode=terminfo color.lightgray = 250 color.darkgray = 239 status.modified = darkgray bold lightgray_background
This will result in a dark gray text on a light gray background (these are not canonical dark and light gray colors, but these are 007 and 015). Note that there is no separate definition of foreground and background colors - you can simply add _background
to a specific color name.
source share