Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know it's possible to change the $ user@hostname colors, but is it possible to color different things? Could I make all numbers/integers a certain color. Or set certain keywords to be bold?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

The coloring comes from the emission of various escape sequences. As such, they can only be reliably used when full control of the output is available, such as when outputting the prompt or when using specific programs.

Having said that, it is probably possible to write a terminal emulator that will do pattern-based highlighting, but I have never come across one myself.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.