Detect whether a terminal supports color