Overlays the desired color over the specified range of the Ansi.Str.
Tells you the state the desired visible-character index into the string, and how far into the sequence of segments this happens
Splits this Str at the specified plaintext index, producing two children that when rendered will result in the same visual output.
Runs a function over the sequence of Frags and States to transform it into a new sequence of Frags.
Walk over the sequence of Frags; the callback gets called with each frag, together with some computed metadata about the ansi-State and screen length.
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.