print color only if it is console, else normal text