Allow multiple effects, refactor ansi code generation.
Start testing the formatter.