This library primarily exposes the parse function and the types that it
will yield.
The events relevant to interpreting the stream.
SetForeground corresponds to \e[3Xm and \e[4Xm where X is the colorSetBackground corresponds to \e[9Xm and \e[10Xm where X is the colorSetBold corresponds to \e[1mSetFaint corresponds to \e[2mSetItalic corresponds to \e[3mSetUnderline corresponds to \e[4mSetInverted corresponds to \e[7mLinebreak corresponds to a \n characterCarriageReturn corresponds to a \r characterPrint is a chunk of text which should be interpreted with the style implied
by the preceding actions (i.e. [Bold True, Print "foo"]) should yield a bold
fooRemainder 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.The colors applied to the foreground/background.
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.