Module colored

Simple coloring module for strings

Functions

NameDescription
all(token)
backgroundColor(token)
black(s)
black(s)
blink(s)
blink(s)
blue(s)
blue(s)
bold(s)
bold(s)
colorMixin()
cyan(s)
cyan(s)
darkGray(s)
darkGray(s)
defaultColor(s)
defaultColor(s)
dim(s)
dim(s)
filterAnsiEscapes(s)
foregroundColor(token)
green(s)
green(s)
hidden(s)
hidden(s)
leftJustifyFormattedString(s, width, fillChar)
lightBlue(s)
lightBlue(s)
lightCyan(s)
lightCyan(s)
lightGray(s)
lightGray(s)
lightGreen(s)
lightGreen(s)
lightMagenta(s)
lightMagenta(s)
lightRed(s)
lightRed(s)
lightYellow(s)
lightYellow(s)
magenta(s)
magenta(s)
none(token)
onBlack(s)
onBlack(s)
onBlue(s)
onBlue(s)
onCyan(s)
onCyan(s)
onDarkGray(s)
onDarkGray(s)
onDefaultColor(s)
onDefaultColor(s)
onGreen(s)
onGreen(s)
onLightBlue(s)
onLightBlue(s)
onLightCyan(s)
onLightCyan(s)
onLightGray(s)
onLightGray(s)
onLightGreen(s)
onLightGreen(s)
onLightMagenta(s)
onLightMagenta(s)
onLightRed(s)
onLightRed(s)
onLightYellow(s)
onLightYellow(s)
onMagenta(s)
onMagenta(s)
onRed(s)
onRed(s)
onRgb(s, r, g, b)
onWhite(s)
onWhite(s)
onYellow(s)
onYellow(s)
red(s)
red(s)
reverse(s)
reverse(s)
rgb(s, r, g, b)
style(token)
styleMixin()
tokenize(parts)
underlined(s)
underlined(s)
unformattedLength(s) Calculate length of string excluding all formatting escapes
white(s)
white(s)
yellow(s)
yellow(s)

Structs

NameDescription
RGBString
StyledString Internal structure to style a string

Enums

NameDescription
AnsiColor Available Colors
Style Available Styles