term_color_mode function

Get the color mode of the terminal