Handle the ANSI color sequences.