From owner-freebsd-questions Mon Aug 19 18:30:52 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA03368 for questions-outgoing; Mon, 19 Aug 1996 18:30:52 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts7-line9.uoregon.edu [128.223.150.56]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA03362 for ; Mon, 19 Aug 1996 18:30:49 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.7.5/8.6.12) with SMTP id SAA00288; Mon, 19 Aug 1996 18:30:40 -0700 (PDT) Date: Mon, 19 Aug 1996 18:30:40 -0700 (PDT) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: Adam Capell cc: questions@freebsd.org Subject: Re: colorls and linuxls In-Reply-To: <199608192032.NAA25097@mail.learnps.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 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