Emit the ansi escapes necessary to transition
between two states, if necessary, as a java.lang.String
Messy-but-fast version of emitAnsiCodes that avoids allocating things unnecessarily.
Messy-but-fast version of emitAnsiCodes that avoids allocating things
unnecessarily. Reads it's category listing from a fast Array version of
Attrs.categories and writes it's output to a mutable StringBuilder