Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.