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'm wondering if it's possible to apply a customised highlighting scheme to linux terminal output, outside of the application that's generating the output. (Therefore, piping the output to some kind of colouriser would not do, because it wouldn't work for interactive output.) Ideally, you could apply some kind of regexp to each line, and a colour would be applied to each line that matches. (assuming the facility is switched on)

So, does anyone know of a terminal that offers this feature? The absolute best possibility would be something screen-like, that sits between the terminal and the shell, and processes the output without getting in anything's way.

share|improve this question

migrated from stackoverflow.com Oct 17 '12 at 20:23

This question came from our site for professional and enthusiast programmers.

1 Answer 1

You can use this feature in zsh using zsh-syntax-highlighting.

enter image description here

FISH also does this, but I have not tried it myself. (Site seems to be a little broken for now)

share|improve this answer
    
This seems interesting, but does this work for command line programs running within the terminal, or does it just work with the shell itself? –  Fhnuzoag Oct 18 '12 at 17:31
    
zsh-syntax-highlighting works for anything that you type in, not the output of applications. Take a look at slhck's answer here: Where can I find bash_profile / bashrc themes? Edit: Don't forget that you can use aliases in your ~/.zshrc or ~/.bashrc such as alias ls='ls --color=auto. –  zmode Oct 18 '12 at 17:54

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.