Is it possible to make stdout and stderr output be of different colors in XTerm or Konsole?

前端 未结 7 622
抹茶落季
抹茶落季 2021-01-30 17:16

Is it even achievable?

I would like the output from a command’s stderr to be rendered in a different color than stdout (for example, in red).

I ne

相关标签:
7条回答
  • 2021-01-30 17:51

    Hilite will do this. It's a lightweight solution, but you have to invoke it for each command, eg. hilite gcc myprog.c. A more radical approach is built in to my experimental shell Gush which shows stderr from all commands run in red, stdout in black. Either way is very useful for software builds where you have lots of output with a few error messages that could easily be missed if not highlighted.

    0 讨论(0)
提交回复
热议问题