Subject: | wish: smarter color support |
My wish is that the color handled to improved based on the "ack" model,
which is documented thusly:
--color, --nocolor
--color highlights the matching text. --nocolor supresses the color.
This is on by default unless the output is redirected, or running under
Windows.
#####
With that design, I wouldn't have used "--color", and it would have
"just worked" whether it was going to the screen or being piped to a file.
This came to mind after I had been using --color, but then added a pipe
to the statement to a file. The result was a mess.... The ack model
solves that.
(And ack would have the code to borrow, too. :)
Mark