This library primarily exposes the parse function and the types that it
will yield.
Update a structure with actions parsed out of the given string.
The events relevant to interpreting the stream.
Print is a chunk of text which should be interpreted with the style implied
by the preceding actions (i.e. [SetBold True, Print "foo" 3]) should yield a
bold foo. The Int is the pre-calculated display width for terminal rendering.Remainder is a partial ANSI escape sequence, returned at the end of the
actions if it was cut off. The next string passed to parse should have this
prepended to it.HyperlinkStart starts a hyperlink with the given parameters and URLHyperlinkEnd ends a hyperlinkThe colors applied to the foreground/background.
The types of erasure modes for screen/line clearing.
Convert an arbitrary String of text into a sequence of actions.
If the input string ends with a partial ANSI escape sequence, it will be yielded as a
Remainderaction, which should then be prepended to the next call toparse.