Wagner Ferenc wrote:
> 
> David Roundy <[EMAIL PROTECTED]> writes:
> 
>> On Thu, Jan 24, 2008 at 09:56:18AM +0100, Nicolas Pouillard wrote:
>>> What about automatically launching a pager ($PAGER) when the output is a 
>>> tty?
>>>
>>> Note: That's git default
>> I think this is probably the better option.
> 
> It would be especially nice if the pager preserved coloring of the
> output.  Is there a way to get darcs1 output escape sequences when
> writing to a pipe?  Er, I could as well have a look...

I think what you are getting at might be how the defaults are set up for 
the Perl-based 'ack' program:

If the output is a tty, color is on by default. However, if output is a 
pipe, color is off by default, since other programs tend to expect plain 
text.

Related: I believe "less" doesn't handle color escape codes by default. 
You have to invoke it with "-R" for that.

   Mark

__________________________________
Darcs bug tracker <[EMAIL PROTECTED]>
<http://bugs.darcs.net/issue610>
__________________________________
_______________________________________________
darcs-devel mailing list
darcs-devel@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-devel

Reply via email to