AnsiStyleSet

Contains an AnsiColour for the foreground, an AnsiColour for the background, and an AnsiStyle for additional styling, and provides the ability to create an ANSI SGR command to set the foreground, background, and overall styling of the terminal.

A.k.a This is just a container over two AnsiColours and an AnsiStyle.

Members

Functions

bg
AnsiStyleSet bg(AnsiColour colour)
bg
AnsiStyleSet bg(Ansi4BitColour colour)
bg
AnsiStyleSet bg(Ansi8BitColour colour)
bg
AnsiStyleSet bg(AnsiRgbColour colour)
bg
AnsiColour bg()
fg
AnsiStyleSet fg(AnsiColour colour)
fg
AnsiStyleSet fg(Ansi4BitColour colour)
fg
AnsiStyleSet fg(Ansi8BitColour colour)
fg
AnsiStyleSet fg(AnsiRgbColour colour)
fg
AnsiColour fg()
style
AnsiStyleSet style(AnsiStyle style)
style
AnsiStyle style()
toSequence
char[] toSequence(char[MAX_CHARS_NEEDED] buffer)

Creates an ANSI SGR command that sets the foreground colour, sets the background colour, and enables all of the desired styling options, while leaving all of the other options unchanged.

Manifest constants

MAX_CHARS_NEEDED
enum MAX_CHARS_NEEDED;

The maximum amount of characters any singular AnsiStyle sequence may use.

Meta