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 AnsiTextLite.toFullStartSequence

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

char[] toFullStartSequence(
    char[53LU] buffer
);

Documentation

Populates the given buffer with the full ANSI sequence needed to enable the styling defined within this AnsiTextLite

Unlike the usual toSequencefunctions, this function includes the ANSI_CSIand ANSI_COLOUR_ENDmarkers, meaning the output from this function is ready to be printed as-is.

Do note that this function doesn't insert a null-terminator, so if you're using anything based on C strings, you need to insert that yourself.

Notes

Any parts of the bufferthat are not populated by this function are left untouched.

Params

Returns

The slice of bufferthat has been populated.