[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] preserve ascii escape characters from input

From: Mike Bianchi
Subject: Re: [Groff] preserve ascii escape characters from input
Date: Sat, 27 Feb 2010 08:16:04 -0500
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

On Sat, Feb 27, 2010 at 12:25:31PM +0000, Ralph Corderoy wrote:
> > > It's horrible when commands hard-code ANSI escape sequences, e.g.
> > > the otherwise good dstat(1).
> > 
> > I think it's pretty common these days, though.  I took a quick peek
> > and ls, grep, colordiff and git all hard-code ANSI.

My  dstat(1)  on Ubunutu 8.04 Linux puts out color escapes when the it
talks to a terminal, but is mono-chrome when invoked in a pipe line or into
a file.
        dstat  |  cat -
        dstat  >dstat.out

Similarly for  ls --color=auto .

 Mike Bianchi
 Foveal Systems

 973 822-2085   call to arrange Fax


reply via email to

[Prev in Thread] Current Thread [Next in Thread]