Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 1996 18:30:40 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Adam Capell <adam.capell@learnps.com>
Cc:        questions@freebsd.org
Subject:   Re: colorls and linuxls
Message-ID:  <Pine.BSI.3.94.960819182512.216C-100000@gdi.uoregon.edu>
In-Reply-To: <199608192032.NAA25097@mail.learnps.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 Aug 1996, Adam Capell wrote:

> Why is it that when I pipe the output of either colorls or linuxls to 
> more, I get garbage?  I suspect it has something to do with the extra 
> color information - 8-bit characters or ansi or whatever, but is 
> there any way to get around this?  It doesn't make these binaries 
> very useful.   Are there any parameters for my Console or  
> color_xterm I can use?

Note that pagers like more and less will translate the 8 bit ESC
characters into <ESC> on screen, so you will need to use the -r option to
keep 'less' from translating those characters.  Note that if there are
other control characters in the file, those will be passed directly on to
the screen without translation, and strange things may happen. 

I assume this is what you are trying to do when you say your are piping
information from colorls and getting garbage.  

What do you get when you do 'colorls -G'?  Does the output look OK?

I don't know how to force 'more' into raw mode.  

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.960819182512.216C-100000>