Colorize output of 'src diff' and 'src log'
Colorized output can help draw the eye to important bits of information quickly. This patch series colorizes the output of src diff
and src log
in the manner of git diff
and git log
, respectively.
Unlike !1 (closed) by @jkabrg, which hard-coded ANSI color values and colorized unconditionally, this patch series takes advantage of terminfo/termcap and colorizes only if the output is a terminal.