ANSI-colors in the compilation buffer output26 Apr 2016, by Artur Malabarba.
Countless build tools and shell scripts use ANSI escape codes to colorize their output. This provides impressive improvements to readability when running from a terminal that supports them, but tends to cause a catastrophic mess anywhere else. Emacs’ compilation buffer is one such place. It doesn’t support ANSI colors by default, but that’s very easy to fix.
Emacs already has a library for interpreting ANSI escape. All we need is to hook