[#2030] properly detect terminal capability for colorized text