delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/02/18/10:24:11

Date: Sun, 18 Feb 2001 17:21:05 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
Message-Id: <3405-Sun18Feb2001172104+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp-workers AT delorie DOT com
In-reply-to: <CAEGKOHJKAAFPKOCLHDICEKPCAAA.tim.van.holder@pandora.be>
Subject: Re: GNU_grep-2.5c_beta
References: <CAEGKOHJKAAFPKOCLHDICEKPCAAA DOT tim DOT van DOT holder AT pandora DOT be>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
> Date: Sun, 18 Feb 2001 15:39:38 +0100
> >
> > ???  How is this different from piping the output of `ls' through Less?
> 
> It's not. But with grep/diff, the color support offers a great advantage in
> readability

I don't agree.  I think that color is as important in `ls's output as
it is in Grep's or Diff's (or any other utility).  In both cases,
there are enough visual cues in the absence of the colors to get the
info (the effect of the -F switch in the case of `ls' and the
"file:NN:" prefix in the case of Grep).

IMHO, of course.

> > In other words, when stdout is redirected to a disk file, the DJGPP
> > implementation of the color support should turn off its special color
> > code and use stdio functions instead.  That's what the ported `ls' does.
> Yes - 'ls --color=yes |less' emits ANSI color sequences instead of using
> screen writes.

That's not what I meant.  I meant to use --color=auto, which avoids
escape sequences entirely for redirected output.

> What I'm suggesting is that an option is added to less or
> to its DJGPP port) that will support and translate ANSI color sequences.

Why an option?  Why shouldn't Less do that by default?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019