Represents a single, atomic ANSI escape sequence that results in a color, background or decoration being added to the output
A piece of an Ansi.Str which just contains raw string-content, without any special characters
A piece of an Ansi.Str
Represents the state of the ANSI color state machine at any point in the string.
Represents a structured Ansi-colored string, containing both Colors and string Content, with operations that let you easily manipulate the string while keeping colors sane.
Represents a structured Ansi-colored string, containing both Colors and string Content, with operations that let you easily manipulate the string while keeping colors sane.
Maintains an invariant that it is always in a "collapsed" state: the fragments never have any consecutive Content nodes, or any consecutive redundant Color nodes.