Gentoo Archives: gentoo-dev

From: "C. Brewer" <cbrewer@×××××××××××××.net>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
Date: Fri, 14 Mar 2003 19:52:46
Message-Id: 20030314115111.711e9bdd.cbrewer@stealthaccess.net
In Reply to: Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes by Joseph Carter
1 On Fri, 14 Mar 2003 11:24:18 -0800
2 Joseph Carter <knghtbrd@×××.org> wrote:
3
4 > On Fri, Mar 14, 2003 at 11:42:32AM +0100, Tim Ruehsen wrote:
5 > > I redirected output from 'qpkg' into a file. Now it contains these ESC color
6 > > codes (that might are nice on a console). How do I switch ESC codes off?
7 >
8 > Part of the problem with the colors is that Gentoo does not read the
9 > terminfo database for the current terminal type to determine whether or
10 > not color codes are supported or how to display them. Not all of the
11 > Gentoo tools check where stdout is going either. This is the kind of
12 > thing that many people would not think important today, but by not
13 > performing these tests we harm our own reputation in the eyes of those
14 > people who are long-time unix hands and know the difference between flash
15 > and function. The wrong codes sent to the wrong terminal can be truly
16 > catastrophic.
17 >
18 > I have heard from people whose opinions I respect that this is a problem
19 > with certain other Linux distributions. The people in question have not
20 > taken a long look at Gentoo, but they would have the same complaints here
21 > I think. Fixing this is certainly not top priority, but it is certainly a
22 > professional touch which should not be ignored.
23 >
24 > --
25 > Joseph Carter <knghtbrd@×××.org> SCO must cease to exist!
26 >
27 > <joeyh> netgod: er, are these 2.2.0 packages 2.0.0pre9 or do you have a
28 > direct line with the gods?
29 > <netgod> joeyh: i have the direct line
30 >
31 >
32 Catastrophic in the same way as trying to use kpackage with apt-install and a colored bash prompt, or just mildly irritating?:)
33
34 --
35 Chuck Brewer
36 Registered Linux User #284015
37 Get my gpg public key at pgp.mit.edu!! Encrypted e-mail preferred.

Replies

Subject Author
Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes Joseph Carter <knghtbrd@×××.org>