Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions ansiExecuteSgrSequence

1
2
3
4
5
6
7
module juptune.core.util.ansi;

string ansiExecuteSgrSequence(
    const char[] input, 
    AnsiStyleSet style, 
    ulong charsRead
);

Documentation

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.

Params

Returns

Either nullon success, or a string describing the error that was encountered.

CONSTANTS