Re: How to print colorized text to the terminal

2018-06-04 Thread Bruce Gray
> On Jun 3, 2018, at 7:41 PM, Xin Cheng wrote: > > I am trying to make a program to do grep with perl6 regular expression, and I > would like to colorize the matched part to the terminal. —snip-- > if $temp ~~ s/ (<$pattern>) /\\x1b\[31m$0\\x1b\[0m/ {say $temp} —snip— Change this:

Re: need second pair of eyes

2018-06-04 Thread Thomas Klausner
Hi! On Sun, Jun 03, 2018 at 03:05:33PM -0700, ToddAndMargo wrote: > On 06/03/2018 02:54 PM, Brad Gilbert wrote: > > But in this case it is even better to use -I and -M > > > > p6 -I. -MRunNoShell -e '( my $a, my $b ) = > > RunNoShell::RunNoShell("ls *.pm6"); say $a;' > > $ perl6

Re: How to print colorized text to the terminal

2018-06-04 Thread Xin Cheng
Thanks Bruce, This is great, and It works as I expected. I appreciate all the helps. Regards Xin > On Jun 4, 2018, at 9:04 AM, Bruce Gray wrote: > > >> On Jun 3, 2018, at 7:41 PM, Xin Cheng wrote: >> >> I am trying to make a program to do grep with perl6 regular expression, and >> I woul

Re: need second pair of eyes

2018-06-04 Thread ToddAndMargo
On 06/03/2018 03:15 PM, Thomas Klausner wrote: Hi! On Sun, Jun 03, 2018 at 03:05:33PM -0700, ToddAndMargo wrote: On 06/03/2018 02:54 PM, Brad Gilbert wrote: But in this case it is even better to use -I and -M p6 -I. -MRunNoShell -e '( my $a, my $b ) = RunNoShell::RunNoShell