* [gentoo-dev] output from qpkg / gentoolkit without ESC codes
@ 2003-03-14 10:42 Tim Ruehsen
2003-03-14 10:50 ` Dar-Klajid
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Tim Ruehsen @ 2003-03-14 10:42 UTC (permalink / raw
To: gentoo-dev
Hi,
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?
Or: Where can I find a list of all available packages?
Regards, Tim Ruehsen
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
2003-03-14 10:42 [gentoo-dev] output from qpkg / gentoolkit without ESC codes Tim Ruehsen
@ 2003-03-14 10:50 ` Dar-Klajid
2003-03-14 11:14 ` Tim Ruehsen
2003-03-14 11:08 ` Oliver Burnett-Hall
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Dar-Klajid @ 2003-03-14 10:50 UTC (permalink / raw
To: Tim Ruehsen; +Cc: gentoo-dev
qpkg --help tells you to use qpkg -nc
Ben
On Fri, 2003-03-14 at 11:42, Tim Ruehsen wrote:
> Hi,
>
> 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?
>
> Or: Where can I find a list of all available packages?
>
> Regards, Tim Ruehsen
>
>
> --
> gentoo-dev@gentoo.org mailing list
>
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
2003-03-14 10:42 [gentoo-dev] output from qpkg / gentoolkit without ESC codes Tim Ruehsen
2003-03-14 10:50 ` Dar-Klajid
@ 2003-03-14 11:08 ` Oliver Burnett-Hall
2003-03-14 18:21 ` Jon Portnoy
2003-03-14 19:24 ` Joseph Carter
3 siblings, 0 replies; 11+ messages in thread
From: Oliver Burnett-Hall @ 2003-03-14 11:08 UTC (permalink / raw
To: gentoo-dev
On Fri, 2003-03-14 at 10:42, 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?
# qpkg --help | grep color
-nc, --no-color don't use colors
Also, 'less -R' will let you view files containing control chars correctly.
- olly
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
2003-03-14 10:50 ` Dar-Klajid
@ 2003-03-14 11:14 ` Tim Ruehsen
0 siblings, 0 replies; 11+ messages in thread
From: Tim Ruehsen @ 2003-03-14 11:14 UTC (permalink / raw
To: Dar-Klajid; +Cc: gentoo-dev
Am Freitag, 14. März 2003 11:50 schrieb Dar-Klajid:
> qpkg --help tells you to use qpkg -nc
Oops... I somehow missed it... thanks.
Tim
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
2003-03-14 10:42 [gentoo-dev] output from qpkg / gentoolkit without ESC codes Tim Ruehsen
2003-03-14 10:50 ` Dar-Klajid
2003-03-14 11:08 ` Oliver Burnett-Hall
@ 2003-03-14 18:21 ` Jon Portnoy
2003-03-14 19:24 ` Joseph Carter
3 siblings, 0 replies; 11+ messages in thread
From: Jon Portnoy @ 2003-03-14 18:21 UTC (permalink / raw
To: Tim Ruehsen; +Cc: gentoo-dev
On Fri, Mar 14, 2003 at 11:42:32AM +0100, Tim Ruehsen wrote:
> Hi,
>
> 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?
>
qpkg -nc (-nc is no color)
--
Jon Portnoy
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
2003-03-14 10:42 [gentoo-dev] output from qpkg / gentoolkit without ESC codes Tim Ruehsen
` (2 preceding siblings ...)
2003-03-14 18:21 ` Jon Portnoy
@ 2003-03-14 19:24 ` Joseph Carter
2003-03-14 19:51 ` C. Brewer
` (2 more replies)
3 siblings, 3 replies; 11+ messages in thread
From: Joseph Carter @ 2003-03-14 19:24 UTC (permalink / raw
To: Tim Ruehsen; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1395 bytes --]
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. This is the kind of
thing that many people would not think important today, but by not
performing these tests we harm our own reputation in the eyes of those
people who are long-time unix hands and know the difference between flash
and function. The wrong codes sent to the wrong terminal can be truly
catastrophic.
I have heard from people whose opinions I respect that this is a problem
with certain other Linux distributions. The people in question have not
taken a long look at Gentoo, but they would have the same complaints here
I think. Fixing this is certainly not top priority, but it is certainly a
professional touch which should not be ignored.
--
Joseph Carter <knghtbrd@efn.org> SCO must cease to exist!
<joeyh> netgod: er, are these 2.2.0 packages 2.0.0pre9 or do you have a
direct line with the gods?
<netgod> joeyh: i have the direct line
[-- Attachment #2: Type: application/pgp-signature, Size: 253 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
2003-03-14 19:24 ` Joseph Carter
@ 2003-03-14 19:51 ` C. Brewer
2003-03-14 20:23 ` Joseph Carter
2003-03-14 21:35 ` Klaus-J. Wolf
2003-03-15 7:26 ` Todd Heim
2 siblings, 1 reply; 11+ messages in thread
From: C. Brewer @ 2003-03-14 19:51 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1747 bytes --]
On Fri, 14 Mar 2003 11:24:18 -0800
Joseph Carter <knghtbrd@efn.org> 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. This is the kind of
> thing that many people would not think important today, but by not
> performing these tests we harm our own reputation in the eyes of those
> people who are long-time unix hands and know the difference between flash
> and function. The wrong codes sent to the wrong terminal can be truly
> catastrophic.
>
> I have heard from people whose opinions I respect that this is a problem
> with certain other Linux distributions. The people in question have not
> taken a long look at Gentoo, but they would have the same complaints here
> I think. Fixing this is certainly not top priority, but it is certainly a
> professional touch which should not be ignored.
>
> --
> Joseph Carter <knghtbrd@efn.org> SCO must cease to exist!
>
> <joeyh> netgod: er, are these 2.2.0 packages 2.0.0pre9 or do you have a
> direct line with the gods?
> <netgod> joeyh: i have the direct line
>
>
Catastrophic in the same way as trying to use kpackage with apt-install and a colored bash prompt, or just mildly irritating?:)
--
Chuck Brewer
Registered Linux User #284015
Get my gpg public key at pgp.mit.edu!! Encrypted e-mail preferred.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
2003-03-14 19:51 ` C. Brewer
@ 2003-03-14 20:23 ` Joseph Carter
0 siblings, 0 replies; 11+ messages in thread
From: Joseph Carter @ 2003-03-14 20:23 UTC (permalink / raw
To: C. Brewer; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 2370 bytes --]
On Fri, Mar 14, 2003 at 11:51:11AM -0800, C. Brewer wrote:
> > 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. This is the kind of
> > thing that many people would not think important today, but by not
> > performing these tests we harm our own reputation in the eyes of those
> > people who are long-time unix hands and know the difference between flash
> > and function. The wrong codes sent to the wrong terminal can be truly
> > catastrophic.
> >
> > I have heard from people whose opinions I respect that this is a problem
> > with certain other Linux distributions. The people in question have not
> > taken a long look at Gentoo, but they would have the same complaints here
> > I think. Fixing this is certainly not top priority, but it is certainly a
> > professional touch which should not be ignored.
> >
> Catastrophic in the same way as trying to use kpackage with apt-install
> and a colored bash prompt, or just mildly irritating?:)
Catastrophic as in that it us usually a user who winds up doing this and
they wind up with a hosed screen.. Then they come crying to their admin
to fix it for them. The hapless admin of course doesn't even know what
caused this problem and the equally hapless user can't explain what he did
to cause the problem.
Then of course the sysadmin who has already been driven insane goes on a
killing spree because he just can't take anymore abuse. ;)
Ever accidentally sent enough binary to the screen to change your console
to the alt charset? It sucks, but we are able to undo the problem,
whatever it was. Sending terminal codes a terminal doesn't understand is
how you get these kinds of problems.
--
Joseph Carter <knghtbrd@efn.org> SCO must cease to exist!
<hop_> i had something that i think was chicken that was coated with a red
paste that seemed to be composed of lye based on how much of my
tongue it burned away.
<hop_> our friend who is Indian said this is why most Indians are thin
and i quote "It doesn't take very much of this food to get you
satisfied enough to stop eating."
[-- Attachment #2: Type: application/pgp-signature, Size: 253 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
2003-03-14 19:24 ` Joseph Carter
2003-03-14 19:51 ` C. Brewer
@ 2003-03-14 21:35 ` Klaus-J. Wolf
2003-03-15 7:26 ` Todd Heim
2 siblings, 0 replies; 11+ messages in thread
From: Klaus-J. Wolf @ 2003-03-14 21:35 UTC (permalink / raw
To: Joseph Carter; +Cc: gentoo-dev
Joseph Carter wrote:
>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.
>
I have had proposed that color codes should not be output if the output
stream is not tty (like ls(1) does with the setting --color=auto). This
is default with emerge now.
I'm still one of the persons working with non-ANSI terminals and
expecting colorful output under no circumstances. Maybe that's
old-fashioned, but maybe the use of ls(1) (e.g.) itself is rather
old-fashioned. ;->
Kind regards,
k.j.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
2003-03-14 19:24 ` Joseph Carter
2003-03-14 19:51 ` C. Brewer
2003-03-14 21:35 ` Klaus-J. Wolf
@ 2003-03-15 7:26 ` Todd Heim
2003-03-15 16:03 ` Paul de Vrieze
2 siblings, 1 reply; 11+ messages in thread
From: Todd Heim @ 2003-03-15 7:26 UTC (permalink / raw
To: gentoo-dev
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] output from qpkg / gentoolkit without ESC codes
2003-03-15 7:26 ` Todd Heim
@ 2003-03-15 16:03 ` Paul de Vrieze
0 siblings, 0 replies; 11+ messages in thread
From: Paul de Vrieze @ 2003-03-15 16:03 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 878 bytes --]
On Saturday 15 March 2003 08:26, Todd Heim wrote:
> 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
>
That is a bug. Please report it in bugzilla.
Paul
--
Paul de Vrieze
Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2003-03-15 16:03 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-14 10:42 [gentoo-dev] output from qpkg / gentoolkit without ESC codes Tim Ruehsen
2003-03-14 10:50 ` Dar-Klajid
2003-03-14 11:14 ` Tim Ruehsen
2003-03-14 11:08 ` Oliver Burnett-Hall
2003-03-14 18:21 ` Jon Portnoy
2003-03-14 19:24 ` Joseph Carter
2003-03-14 19:51 ` C. Brewer
2003-03-14 20:23 ` Joseph Carter
2003-03-14 21:35 ` Klaus-J. Wolf
2003-03-15 7:26 ` Todd Heim
2003-03-15 16:03 ` Paul de Vrieze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox