ANSI Highlighting With less

My less command of my FreeBSD installation doesn’t show the ansi colors embedded in the Rails log file. Well it does shows the codes, but I don’t want to see those.

I found a simple solution for this:

export LESS='--RAW-CONTROL-CHARS'

Put the code above in the ~/.bashrc/ file and less will finally show the colors…!

Leave a Reply

Your email address will not be published. Required fields are marked *

*


7 * one =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>