Re: [gentoo-user] removing color

2003-11-15 Thread Andrew Gaffney
Erik S. Johansen wrote: On Friday 14 November 2003 16:38, Andrew Gaffney wrote: I'm really looking for something more generic. I just used emerge as an example. I want to be able to strip color out of *any* output. otoh, sed -r "s:[^[][[][0-9]{1,2}[;]{0,1}[0-9]{0,2}[m]::g" should filter out ANS

Re: [gentoo-user] removing color

2003-11-14 Thread Oliver Lange
Erik S. Johansen wrote: otoh, sed -r "s:[^[][[][0-9]{1,2}[;]{0,1}[0-9]{0,2}[m]::g" should filter out ANSI. How easy for a beginner to figure out such commands.. like needing to develop the complete car to invent the wheel.. :) -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] removing color

2003-11-14 Thread Erik S. Johansen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 14 November 2003 16:38, Andrew Gaffney wrote: > I'm really looking for something more generic. I just used emerge as an > example. I want to be able to strip color out of *any* output. otoh, sed -r "s:[^[][[][0-9]{1,2}[;]{0,1}[0-9]{0,2}[m]::

Re: [gentoo-user] removing color

2003-11-14 Thread Andrew Gaffney
Oliver Lange wrote: Andrew Gaffney wrote: What I'm really looking for is maybe a way to pipe output through sed and strip out and ^[blah] or whatever control sequences that add the color. Yep, a temporary color stripper for the current (or next) command entered in the shell. Text in light color

Re: [gentoo-user] removing color

2003-11-14 Thread Oliver Lange
Andrew Gaffney wrote: What I'm really looking for is maybe a way to pipe output through sed and strip out and ^[blah] or whatever control sequences that add the color. Yep, a temporary color stripper for the current (or next) command entered in the shell. Text in light colors (yellow, light cyan

Re: [gentoo-user] removing color

2003-11-14 Thread Andrew Gaffney
Jeffrey Smelser wrote: Is there a command line program or script I can filter something through to remove color? For example, if I want to run 'emerge' and get output with no color, how can I do this? You could always use tee, and just set the file to /dev/null.. I think tee will cut the color

RE: [gentoo-user] removing color

2003-11-14 Thread Jeffrey Smelser
> Is there a command line program or script I can filter > something through to remove color? > For example, if I want to run 'emerge' and get output with no > color, how can I do this? You could always use tee, and just set the file to /dev/null.. I think tee will cut the colors out and still

Re: [gentoo-user] removing color

2003-11-14 Thread Andrew Gaffney
Hall Stevenson wrote: At 09:36 AM 11/14/2003, you wrote: Hall Stevenson wrote: At 01:29 AM 11/14/2003, you wrote: Is there a command line program or script I can filter something through to remove color? For example, if I want to run 'emerge' and get output with no color, how can I do this?

Re: [gentoo-user] removing color

2003-11-14 Thread Hall Stevenson
At 09:38 AM 11/14/2003, you wrote: Spider wrote: begin quote On Fri, 14 Nov 2003 11:18:02 +0100 Norbert Kamenicky <[EMAIL PROTECTED]> wrote: Andrew Gaffney wrote: Is there a command line program or script I can filter something through to remove color? For example, if I want to run 'emerge' and

Re: [gentoo-user] removing color

2003-11-14 Thread Hall Stevenson
At 09:36 AM 11/14/2003, you wrote: Hall Stevenson wrote: At 01:29 AM 11/14/2003, you wrote: Is there a command line program or script I can filter something through to remove color? For example, if I want to run 'emerge' and get output with no color, how can I do this? From memory 'emerge --no-

Re: [gentoo-user] removing color

2003-11-14 Thread Spider
begin quote On Fri, 14 Nov 2003 08:38:05 -0600 Andrew Gaffney <[EMAIL PROTECTED]> wrote: > I'm really looking for something more generic. I just used emerge as > an example. I want to be able to strip color out of *any* output. Ahh, then I don't really know. perhaps by setting the TERM variabl

Re: [gentoo-user] removing color

2003-11-14 Thread Andrew Gaffney
David Gethings wrote: On Fri, 2003-11-14 at 14:36, Andrew Gaffney wrote: 'emerge --help | grep color' gives me nothing. Also, neither of those options, or a few variations on them, work. Have you tried setting your TERM type to one that doesn't support colour? That should stop all output being co

Re: [gentoo-user] removing color

2003-11-14 Thread David Gethings
On Fri, 2003-11-14 at 14:36, Andrew Gaffney wrote: > 'emerge --help | grep color' gives me nothing. Also, neither of those options, or a > few > variations on them, work. Have you tried setting your TERM type to one that doesn't support colour? That should stop all output being colourised (other

Re: [gentoo-user] removing color

2003-11-14 Thread Andrew Gaffney
Spider wrote: begin quote On Fri, 14 Nov 2003 11:18:02 +0100 Norbert Kamenicky <[EMAIL PROTECTED]> wrote: Andrew Gaffney wrote: Is there a command line program or script I can filter something through to remove color? For example, if I want to run 'emerge' and get output with no color, how ca

Re: [gentoo-user] removing color

2003-11-14 Thread Andrew Gaffney
Hall Stevenson wrote: At 01:29 AM 11/14/2003, you wrote: Is there a command line program or script I can filter something through to remove color? For example, if I want to run 'emerge' and get output with no color, how can I do this? From memory 'emerge --no-color' Check 'emerge --help' to

Re: [gentoo-user] removing color

2003-11-14 Thread Andrew Gaffney
Norbert Kamenicky wrote: Andrew Gaffney wrote: Is there a command line program or script I can filter something through to remove color? For example, if I want to run 'emerge' and get output with no color, how can I do this? It's really currious question ... if I redirect the output of an "em

Re: [gentoo-user] removing color

2003-11-14 Thread Hall Stevenson
At 01:29 AM 11/14/2003, you wrote: Is there a command line program or script I can filter something through to remove color? For example, if I want to run 'emerge' and get output with no color, how can I do this? From memory 'emerge --no-color' Check 'emerge --help' to be sure. It might be --no

Re: [gentoo-user] removing color

2003-11-14 Thread Spider
begin quote On Fri, 14 Nov 2003 11:18:02 +0100 Norbert Kamenicky <[EMAIL PROTECTED]> wrote: > Andrew Gaffney wrote: > > > Is there a command line program or script I can filter something > > through to remove color? For example, if I want to run 'emerge' and > > get output with no color, how c

Re: [gentoo-user] removing color

2003-11-14 Thread Norbert Kamenicky
Andrew Gaffney wrote: Is there a command line program or script I can filter something through to remove color? For example, if I want to run 'emerge' and get output with no color, how can I do this? It's really currious question ... if I redirect the output of an "emerge" to file or prog (ca

[gentoo-user] removing color

2003-11-13 Thread Andrew Gaffney
Is there a command line program or script I can filter something through to remove color? For example, if I want to run 'emerge' and get output with no color, how can I do this? -- Andrew Gaffney -- [EMAIL PROTECTED] mailing list