From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20833 invoked by uid 1002); 15 Mar 2003 07:26:05 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 26447 invoked from network); 15 Mar 2003 07:26:05 -0000 Date: Sat, 15 Mar 2003 02:26:04 -0500 From: Todd Heim To: gentoo-dev@gentoo.org Message-ID: <20030315072604.GA26717@tnt.heim.cjb.net> References: <200303141142.32964.tim.ruehsen@openmediasystem.de> <20030314192418.GB11939@galen.bluecherry.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030314192418.GB11939@galen.bluecherry.net> User-Agent: Mutt/1.4i Subject: Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes X-Archives-Salt: 0f1a155a-258e-46ff-8300-35c9e64f04fe X-Archives-Hash: 8390b459c58ea2169d094e5c7c56dd0a On Fri, Mar 14, 2003 at 11:24:18AM -0800, Joseph Carter wrote: > On Fri, Mar 14, 2003 at 11:42:32AM +0100, Tim Ruehsen wrote: > > I redirected output from 'qpkg' into a file. Now it contains these ESC color > > codes (that might are nice on a console). How do I switch ESC codes off? > > Part of the problem with the colors is that Gentoo does not read the > terminfo database for the current terminal type to determine whether or > not color codes are supported or how to display them. Not all of the > Gentoo tools check where stdout is going either. You're right about not checking where output is going.. one thing Ive noticed recently is runscript (used by init scripts) doesn't even have a way to control colors via -nc. Only recently has this become something to think about, as I recently bought a wireless card. now when inserting the wireless card it logs the output from /etc/init.d/net.eth1 start into the system logs, color codes and all. example: Mar 12 03:28:03 [cardmgr] executing: './network start eth1' Mar 12 03:28:04 [cardmgr] + [32;01m* [0m Bringing eth1 up... Mar 12 03:28:08 [cardmgr] + [A [-7G [34;01m[ [32;01mok [34;01m] [0m Mar 12 03:28:08 [cardmgr] exiting I looked over runscript.sh, and it looks easy enough to keep it from outputting color; just unset all the variables where teh color codes are defined. http://bugs.gentoo.org/show_bug.cgi?id=17542 (/me finally posted this to bugzilla) -- Todd Heim http://theim.net -- gentoo-dev@gentoo.org mailing list