Re: script output => color highlight to stdout

2010-05-28 Thread Harry Putnam
trapd...@trapd00r.se writes: > And if you want to work with 256 colors (note that not all terminals support > this, and it should be avoided if it's not for your own use) you can do > something like this: > > > my @colors; > for(my $i=0;$i<256;$i++) { > push(@colors, "\033[38;5;$i".'m'); > } > p

Re: script output => color highlight to stdout

2010-05-28 Thread Eitan Adler
On Thu, May 27, 2010 at 6:22 PM, Harry Putnam wrote: > I wondered if anyone could steer me to some information about making > perl script output appear in color highlight on stdout. > > Something like what modern grep does on linux, where the searched term > appears in some color (red) in the outp

Re: script output => color highlight to stdout

2010-05-28 Thread trapd00r
On 27/05/10 22:16 -0500, Bryan Harris wrote: my $e = "\033[0m"; my %cc = ( white => "\033[1;37m", ltgray => "\033[0;37m", gray => "\033[1;30m", black => "\033[0;30m", red => "\033[0;31m", ltred => "\033[1;31m", green => "\033[0;32m", l

Re: script output => color highlight to stdout

2010-05-28 Thread Bryan Harris
Try this > I wondered if anyone could steer me to some information about making > perl script output appear in color highlight on stdout. > > Something like what modern grep does on linux, where the searched term > appears in some color (red) in the output to tty. > > Try this code snippet

Re: script output => color highlight to stdout

2010-05-27 Thread Jim Gibson
At 10:22 AM -0500 5/27/10, Harry Putnam wrote: I wondered if anyone could steer me to some information about making perl script output appear in color highlight on stdout. Something like what modern grep does on linux, where the searched term appears in some color (red) in the output to tty. p

script output => color highlight to stdout

2010-05-27 Thread Harry Putnam
I wondered if anyone could steer me to some information about making perl script output appear in color highlight on stdout. Something like what modern grep does on linux, where the searched term appears in some color (red) in the output to tty. -- To unsubscribe, e-mail: beginners-unsubscr...