grosser / pru

Pipeable Ruby - forget about grep / sed / awk / wc ... use pure, readable Ruby!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Highlight matches in color

jadedgnome opened this issue · comments

grep highlights matches , it'd be great if pru could to.

should be easy to do, just check if $stdout.tty? before adding color :)
can you make a PR ?

I have no idea what any of that means.

color should only be added if $stdout.tty? is false, so automated things don't get extra color

ruby -e puts stdout.tty

is blank

ruby -e 'puts $stdout.tty?'
true

On Sun, Jul 27, 2014 at 2:52 PM, jadedgnome notifications@github.com
wrote:

ruby -e puts stdout.tty

is blank


Reply to this email directly or view it on GitHub
#10 (comment).