From owner-freebsd-questions@FreeBSD.ORG Tue Oct 12 10:48:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2B4116A4CE for ; Tue, 12 Oct 2004 10:48:05 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id D565343D46 for ; Tue, 12 Oct 2004 10:48:04 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (host5.bedc.ondsl.gr [62.103.39.229])i9CAlwmk029061; Tue, 12 Oct 2004 13:48:00 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) i9CAltmO017972; Tue, 12 Oct 2004 13:47:55 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)i9CAlsfS017971; Tue, 12 Oct 2004 13:47:54 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 12 Oct 2004 13:47:54 +0300 From: Giorgos Keramidas To: freebsd@amadeus.demon.nl Message-ID: <20041012104754.GA17947@orion.daedalusnetworks.priv> References: <208449C5-1C32-11D9-B5AA-0003939726F0@amadeus.demon.nl> <20041012100113.GB17178@orion.daedalusnetworks.priv> <3041E897-1C37-11D9-B5AA-0003939726F0@amadeus.demon.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3041E897-1C37-11D9-B5AA-0003939726F0@amadeus.demon.nl> cc: freebsd-questions@freebsd.org Subject: Re: colourization in ls command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 10:48:05 -0000 On 2004-10-12 12:12, FreeBSD questions mailing list wrote: >On 12 okt 2004, at 12:01, Giorgos Keramidas wrote: >>On 2004-10-12 11:36, FreeBSD questions mailing list >> wrote: >>>hello, >>>why is the colouization lost in: >>>ls -alhG | more >> >>Because you piped the output to more(1). > > hmm, of course... > is there a way to preserve it and still have it display page after page? I'm not sure. I very rarely use colors myself and, as a result of this, have not researched this at all. I just happened to know that more(1) does this trick, because I regularly use it on Gentoo Linux installations to strip off the colors from the output of commands like emerge(1), which stupidly insist printing colorful output even if I connect over SSH and set my TERM to vt220.