1234567module juptune.core.util.ansi;
string ansiExecuteSgrSequence(
const char[] input,
AnsiStyleSet style,
ulong charsRead
);
READING/PARSING
Executes the SGR sequence found in input, and populates the passed in stylebased on the command sequence.
Anything directly provided by this library is supported.
The previous state of styleis preserved unless specifically untoggled/reset via the command sequence (e.g. ESC[0mto reset everything).
If an error occurs during execution of the sequence, the given styleis left completely unmodified.
Either nullon success, or a string describing the error that was encountered.
CONSTANTS