Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Unfortunately, there is no perfect general solution. But there are a few general ways that work.</p> <p><a href="http://kassiopeia.juls.savba.sk/~garabik/software/grc.html" rel="nofollow noreferrer" title="GRC">GRC</a>, stands for Generic Colouriser and is for beautifying your logfiles or output of commands. It's packaged on major distributions. I've used it to colorize my make output very nicely. GRC is usually used for common commands with aliases like "grc comand". There are other colorisers and websites sometimes have their own unique ones.</p> <p>A great many programs use the conventional command line switch --color=auto. --color=always will make color happen even from a non-interactive shell, which can be nice to look at later for logged comands using terminal code aware commands like less -R.</p> <p>If your text is from any half-way known program and is ever logged or stored in a file, the text editors Vim or Emacs can do some very smart highlighting on it. Other editors/ides can too but none are as comprehensive. They have general highlighting schemes for configuration files as well as specific filetypes that get very obscure, such as "Quake[1-3] configuration file". And of course there are many many color schemes for each editor to change the colors of hightlighted areas recognized by the editor. This is probably the method most used to get really good highlighting.</p> <p>Of course there are ways to manually type colors in your terminal, with tput or the actual escape codes, and individual programs like ipython or whatever. You didn't ask that question, but you've chosen an answer like that as your favorite solution :(</p> <p>A general solution you might expect would be to colorize standard error in your terminal. Unfortunately there is no way to do this because of lots of complications, for example your prompt is sent to standard error.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload