PDA

View Full Version : Coloring specific words in a terminal



wizmer
March 8th, 2011, 02:23 PM
Hello,

I'm looking for a way to color specific words in a terminal
Ex: I'm a developer so when I'm compiling my code and it is crashing I'm looking for the line displaying "error".
That's why I would like to know if it's possible to always display the word "error" in red in the terminal.

Thank you

ibuclaw
March 8th, 2011, 06:44 PM
You might find colorgcc useful.

wizmer
March 8th, 2011, 07:14 PM
Just ... wonderful !

Thank you !

shawnhcorey
March 8th, 2011, 07:38 PM
See ANSI escape code (https://secure.wikimedia.org/wikipedia/en/wiki/ANSI_escape_code).