How to know if the terminal supports color (escape sequences)


#1

Hi guys!

I am overloading the show function and I want to print some text with color. Is there a way to know if the terminal support colors or if the user wants colors? For example, if the user execute julia --colors=no I would like to not print the colors, but I do not know how to do this inside the show function.