getting a terminal to STOP showing colors

Bryan Sant bryan.sant at gmail.com
Tue Nov 11 15:28:06 MST 2008


So I'm too lazy to look through the cat code, but I'm guessing that
cat is explicitly striping ANSI codes (??).  Or is the shell (or
something else) doing something magical?  You don't get any color/ANSI
codes if you do "ls > foo" either.  I don't fully understand why.

-Bryan

On Tue, Nov 11, 2008 at 1:56 PM, Hans Fugal <hans at fugal.net> wrote:
> Oh, and maybe try piping through cat
>
> ls --color=auto | cat



More information about the PLUG mailing list