You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ketan Padegaonkar <ke...@gmail.com> on 2009/07/30 06:22:06 UTC

Macosx and AnsiColorLogger

Hi,

The AnsiColorLogger described at
(http://ant.apache.org/manual/listeners.html#AnsiColorLogger) does not
work on the apple terminal the same way it does on linux terminals.
All the color output I get is gray and I've tried looking up google
but nothing turned up.

However other console apps that print console output seem to work fine
with color output and I'm wondering if this is a known issue with ant
(or the apple terminal) and if there are any workarounds for it.

Thanks!

-- Ketan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Macosx and AnsiColorLogger

Posted by Brian Pontarelli <br...@pontarelli.com>.
It works fine on my box. I do have the gray background issue on Linux  
terminals and Savant though. However, ant and Savant work fine on Mac.  
Here's my ~/.antrc:

	ANT_OPTS="-Xmx256M"
	ANT_ARGS="-logger org.apache.tools.ant.listener.AnsiColorLogger"

You might also check out your terminals settings. Most modern  
terminals actually translate the escape sequences displayed into a  
color palette. This essentially translates a 4 bit color into a 24 bit  
color. If Ant is sending a sequence for a black background, your  
terminal might be printing that out as gray. I'm using iterm and just  
use the Dark Background profile, which works great.

-bp




On Jul 29, 2009, at 10:22 PM, Ketan Padegaonkar wrote:

> Hi,
>
> The AnsiColorLogger described at
> (http://ant.apache.org/manual/listeners.html#AnsiColorLogger) does not
> work on the apple terminal the same way it does on linux terminals.
> All the color output I get is gray and I've tried looking up google
> but nothing turned up.
>
> However other console apps that print console output seem to work fine
> with color output and I'm wondering if this is a known issue with ant
> (or the apple terminal) and if there are any workarounds for it.
>
> Thanks!
>
> -- Ketan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org