Issue 12273 - Added -color[=on|off] flag

Defaults to colored output if stderr is a TTY and TERM is not dumb.
Merge pull request #3705 from lionello/color

Added -color