populateActiveAnsiComponents

Populates an AnsiComponents with all the strings required to construct a full ANSI command string.

@safe pure
size_t
populateActiveAnsiComponents

Parameters

components AnsiComponents

The AnsiComponents to populate. All values will be set to null before hand.

fg AnsiColour

The AnsiColour representing the foreground.

bg AnsiColour

The AnsiColour representing the background.

flags AnsiTextFlags

The AnsiTextFlags to apply.

Return Value

Type: size_t

How many components in total are active.

See Also

createAnsiCommandString to create an ANSI command string from an AnsiComponents.

Meta