[Mono-dev] XBuild colors

Nicholas Salerno nsalerno at securewatch24.com
Wed Sep 8 09:33:04 EDT 2010


I am using a bash script to make xbuild easier to use (it handles passing all the command line arguments).  At the top of the script I have the following:

# Using different colors just to prove a point
export XBUILD_COLORS
XBUILD_COLORS=errors=blue,warnings=green,events=red

When I run xbuild I definitely see errors and events change colors.  But warnings are always the console's foreground color.  This happens in both gnome-terminal and xterm.

Hmmm.  When I create a scratch program to test my claim I see that the warnings are being colored.  I can't imagine the difference between a simple program and the production scripts.  Admittedly, we have build files that invoke other build files, shell scripts invoking shell scripts, and all of that mixed and matched.  However, I placed the XBUILD_COLORS environment variable in every shell script used just to ensure that the value exists and is set.  Again, I can see errors and events being colored but warnings are the console's foreground color.

I'll have to experiment more at some point (it's not high priority, but I do like using colors to my advantage).

Nicholas

-----Original Message-----
From: Ankit Jain [mailto:radical at gmail.com] 
Sent: Tuesday, September 07, 2010 6:19 PM
To: Nicholas Salerno
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] XBuild colors

What are you setting XBUILD_COLORS to? It works for me (2.6.7 on opensuse 11.2).
What terminal are you trying this in?

-Ankit

On Wed, Sep 8, 2010 at 2:52 AM, Nicholas Salerno
<nsalerno at securewatch24.com> wrote:
> Has anyone noticed that XBuild warnings are not being colored?  Or is it
> just my setup (Mono 2.6.7 on openSUSE 11.2)?  If I change the colors via the
> XBUILD_COLORS shell variable I can see the colors change for errors and
> events, but warnings appear unaffected.  They still remain the default
> terminal color (gray, in my case).
>
>
>
> Nicholas
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>



-- 
Blog : http://www.ankitjain.org/blog


More information about the Mono-devel-list mailing list