Functions

f
bg256

Generates an ANSI escape code for setting the background color using 8-bit color codes.

f
bgRgb

Generates an ANSI escape code for the given RGB background color.

f
fg256

Generates an ANSI escape code for setting the text (foreground) color using 8-bit color codes.

f
fgBg256

Generates ANSI escape codes for setting both the text (foreground) and background colors using 8-bit color codes.

f
fgRgb

Generates an ANSI escape code for the given RGB color.

f
hexToRgb

Converts a HEX color to an RGB color.

f
rgbToHex

Converts an RGB color to a HEX color.

Variables

v
bgBlack

Black background

v
bgBlue

Blue background

v
bgBrightBlack

Bright black background

v
bgBrightBlue

Bright blue background

v
bgBrightCyan

Bright cyan background

v
bgBrightGreen

Bright green background

v
bgBrightMagenta

Bright magenta background

v
bgBrightRed

Bright red background

v
bgBrightWhite

Bright white background

v
bgBrightYellow

Bright yellow background

v
bgCyan

Cyan background

v
bgDefault

Default background color

v
bgGreen

Green background

v
bgMagenta

Magenta background

v
bgRed

Red background

v
bgWhite

White background

v
bgYellow

Yellow background

v
blinkRapid

Rapid blink

v
blinkSlow

Slow blink

v
bold

Bold text or increased intensity

v
faint

Faint text, decreased intensity, or dim

v
fgBlack

Black text

v
fgBlue

Blue text

v
fgBrightBlack

Bright black text

v
fgBrightBlue

Bright blue text

v
fgBrightCyan

Bright cyan text

v
fgBrightGreen

Bright green text

v
fgBrightMagenta

Bright magenta text

v
fgBrightRed

Bright red text

v
fgBrightWhite

Bright white text

v
fgBrightYellow

Bright yellow text

v
fgCyan

Cyan text

v
fgDefault

Default text color

v
fgGreen

Green text

v
fgMagenta

Magenta text

v
fgRed

Red text

v
fgWhite

White text

v
fgYellow

Yellow text

v
hidden

Conceal text

v
inverse

Inverse colors (swap foreground and background colors)

v
italic

Italic text

v
reset

Reset all attributes

v
strikeThrough

Crossed-out text

v
underline

Underlined text