Rewrite ANSI color sequences as macros