cmake colors

Brad King brad.king at kitware.com
Wed Apr 19 16:10:22 CEST 2006


Kurt Pfeifle wrote:
> On Wednesday 19 April 2006 10:56, David Faure wrote:
> 
>>I updated cmake from CVS to test the upcoming release; the first difference I saw
>>was the colors. Nice feature, but I think the actual colors could be improved:
>>light green and yellow are unreadable on a white background.
>>
>>"Building CXX object" is very-light green; with unsermake it was a darker green, which was
>>readable on white background. Looking into the code... hmm, strange; it's the escape code
>>for "bold" which makes the green lighter (and not more bold at all). Hmm, that's in konsole;
>>in xterm it does both (makes it lighter and more bold). Still not very readable there though.
>>
>>"Linking" is yellow in both cmake and unsermake, and unreadable in both, but well,
>>with unsermake only the word "linking" was in yellow, not the actual target being
>>linked, so the target remained readable.
> 
> 
> The unsermake implementation didn't only look very nice, but it also 
> was bettter "usable", because it only highlighted the keywords at the
> beginning of the line (the percentage completed, and then "compiling", 
> "installing", "linking", "creating"...) with the actual job details
> still being the default text color. This made it for easy reading.
> The complete lines being colorated do look to obtrusive, and make for
> harder reading too.

This was not made clear in the original feature request, but it is easy 
to fix.  So, to be clear, only the first word should be colored, and the 
text attributes should be set to have a black background too.  Is this 
correct?

On the other hand in a verbose build having the whole line show up in 
color (with a black background) makes the high-level lines stick out 
from the detail lines.

-Brad


More information about the Kde-buildsystem mailing list