Added support for color in text as displayed on the screen, while
ensuring the log file contains only clear ASCII text (with none
of the ASCII garbage generated by colored output).
If on systems that don't have tput or don't support colors, we
revert back to standard text output without color codes.