Added ANSI mode with separate flags for `ansi` and `strictansi`.