AnsiTextLite.toFullStartSequence

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

Unlike the usual toSequence functions, this function includes the ANSI_CSI and ANSI_COLOUR_END markers, 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 buffer that are not populated by this function are left untouched.

struct AnsiTextLite
@safe @nogc nothrow const
char[]
toFullStartSequence
(
ref return char[MAX_CHARS_NEEDED] buffer
)

Parameters

buffer char[MAX_CHARS_NEEDED]

The buffer to populate.

Return Value

Type: char[]

The slice of buffer that has been populated.

Meta