Terminal formatter

Hi. This is a formatter for ANSI escape sequences. It may be useful for adding syntax highlighting to a pager or REPL etc. I haven't implemented any color approximation/conversion yet so the color scheme is hard-coded at the moment.