Handle colorful text output on 8 and 256 color terminals