consoleur.style.posix

Consoleur: a package for interaction with character-oriented terminal emulators

Members

Enums

Color
enum Color

Color list

Style
enum Style

Font styles

Functions

rgb
uint rgb(uint r, uint g, uint b)

Builds color code for a TrueColor functions

setBg
bool setBg(Color c)

Sets background color

setBg24bit
bool setBg24bit(uint c)

Sets background color in a TrueColor mode

setBg256
bool setBg256(uint c)

Sets background color in a 256 color mode

setColors
bool setColors(Color fgC, Color bgC)

Sets terminal colors

setColors24bit
void setColors24bit(int fgC, int bgC)

Sets colors in a TrueColor mode

setColors256
bool setColors256(int fgC, int bgC)

Sets colors in a 256 color mode

setDefaultColors
void setDefaultColors()

Sets default colors

setFg
bool setFg(Color c)

Sets foreground color

setFg24bit
bool setFg24bit(uint c)

Sets foreground color in a TrueColor mode

setFg256
bool setFg256(uint c)

Sets foreground color in a 256 color mode

setStyle
void setStyle(Style s)

Sets text styles (see enum Style)

Meta

Authors

Maxim Freck <maxim@freck.pp.ru>