Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight matches in color #10

Open
jadedgnome opened this issue Jul 26, 2014 · 5 comments
Open

Highlight matches in color #10

jadedgnome opened this issue Jul 26, 2014 · 5 comments

Comments

@jadedgnome
Copy link

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

@grosser
Copy link
Owner

grosser commented Jul 26, 2014

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

@jadedgnome
Copy link
Author

I have no idea what any of that means.

@grosser
Copy link
Owner

grosser commented Jul 27, 2014

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

@jadedgnome
Copy link
Author

ruby -e puts stdout.tty

is blank

@grosser
Copy link
Owner

grosser commented Jul 28, 2014

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

On Sun, Jul 27, 2014 at 2:52 PM, jadedgnome [email protected]
wrote:

ruby -e puts stdout.tty

is blank


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants