Ansi class

Properties

cBgBlack Ansi
Combines with black background color.
no setter
cBgBlue Ansi
Combines with blue background color.
no setter
cBgBrightBlack Ansi
Combines with bright black background color.
no setter
cBgBrightBlue Ansi
Combines with bright blue background color.
no setter
cBgBrightCyan Ansi
Combines with bright cyan background color.
no setter
cBgBrightGreen Ansi
Combines with bright green background color.
no setter
cBgBrightMagenta Ansi
Combines with bright magenta background color.
no setter
cBgBrightRed Ansi
Combines with bright red background color.
no setter
cBgBrightWhite Ansi
Combines with bright white background color.
no setter
cBgBrightYellow Ansi
Combines with bright yellow background color.
no setter
cBgCyan Ansi
Combines with cyan background color.
no setter
cBgGreen Ansi
Combines with green background color.
no setter
cBgMagenta Ansi
Combines with magenta background color.
no setter
cBgRed Ansi
Combines with red background color.
no setter
cBgWhite Ansi
Combines with white background color.
no setter
cBgYellow Ansi
Combines with yellow background color.
no setter
cBlack Ansi
Combines with black foreground color.
no setter
cBlue Ansi
Combines with blue foreground color.
no setter
cBold Ansi
Combines with bold/increased intensity formatting.
no setter
cBrightBlack Ansi
Combines with bright black foreground color.
no setter
cBrightBlue Ansi
Combines with bright blue foreground color.
no setter
cBrightCyan Ansi
Combines with bright cyan foreground color.
no setter
cBrightGreen Ansi
Combines with bright green foreground color.
no setter
cBrightMagenta Ansi
Combines with bright magenta foreground color.
no setter
cBrightRed Ansi
Combines with bright red foreground color.
no setter
cBrightWhite Ansi
Combines with bright white foreground color.
no setter
cBrightYellow Ansi
Combines with bright yellow foreground color.
no setter
cConceal Ansi
Combines with conceal/hidden formatting.
no setter
cCyan Ansi
Combines with cyan foreground color.
no setter
cDefaultFont Ansi
Combines with the default font.
no setter
cDoubleUnderline Ansi
Combines with double underline formatting.
no setter
cEncircled Ansi
Combines with encircled formatting.
no setter
cFaint Ansi
Combines with faint/decreased intensity formatting.
no setter
Combines with fast blink formatting.
no setter
cFramed Ansi
Combines with framed formatting.
no setter
cGreen Ansi
Combines with green foreground color.
no setter
cInverse Ansi
Combines with inverse/reverse video formatting.
no setter
cItalic Ansi
Combines with italic formatting.
no setter
cMagenta Ansi
Combines with magenta foreground color.
no setter
cOverline Ansi
Combines with overline formatting.
no setter
cRed Ansi
Combines with red foreground color.
no setter
cReset Ansi
Combines with the reset style.
no setter
Combines with slow blink formatting.
no setter
cStrikethrough Ansi
Combines with strikethrough formatting.
no setter
cSubscript Ansi
Combines with subscript formatting.
no setter
cSuperscript Ansi
Combines with superscript formatting.
no setter
cUnderline Ansi
Combines with underline formatting.
no setter
cWhite Ansi
Combines with white foreground color.
no setter
cYellow Ansi
Combines with yellow foreground color.
no setter
hashCode int
The hash code for this object.
no setterinherited
off String
Returns the ANSI escape sequence to disable (reset) the styles defined by this Ansi instance.
no setter
on String
Returns the ANSI escape sequence to enable the styles defined by this Ansi instance.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cBg256(int colorIndex) Ansi
Combines with a 256-color background.
cBgRgb(int r, int g, int b) Ansi
Combines with a true color (RGB) background.
cFg256(int colorIndex) Ansi
Combines with a 256-color foreground.
cFgRgb(int r, int g, int b) Ansi
Combines with a true color (RGB) foreground.
cFont(int n) Ansi
Combines with an alternate font.
combine(Ansi other) Ansi
Combines this Ansi instance with another Ansi instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(dynamic input) String
Applies the ANSI escape codes to the given input string.
toString() String
A string representation of this object.
inherited

Operators

operator +(Ansi other) Ansi
Overloads the + operator to combine two Ansi instances.
operator ==(Object other) bool
The equality operator.
inherited

Static Methods

bg256(int colorIndex) Ansi
Factory for 256-color background.
bgRgb(int r, int g, int b) Ansi
Factory for true color (RGB) background.
fg256(int colorIndex) Ansi
Factory for 256-color foreground.
fgRgb(int r, int g, int b) Ansi
Factory for true color (RGB) foreground.
font(int n) Ansi
Sets an alternate font.

Constants

bgBlack → const Ansi
Sets the background color to black.
bgBlue → const Ansi
Sets the background color to blue.
bgBrightBlack → const Ansi
Sets the background color to bright black.
bgBrightBlue → const Ansi
Sets the background color to bright blue.
bgBrightCyan → const Ansi
Sets the background color to bright cyan.
bgBrightGreen → const Ansi
Sets the background color to bright green.
bgBrightMagenta → const Ansi
Sets the background color to bright magenta.
bgBrightRed → const Ansi
Sets the background color to bright red.
bgBrightWhite → const Ansi
Sets the background color to bright white.
bgBrightYellow → const Ansi
Sets the background color to bright yellow.
bgCyan → const Ansi
Sets the background color to cyan.
bgGreen → const Ansi
Sets the background color to green.
bgMagenta → const Ansi
Sets the background color to magenta.
bgRed → const Ansi
Sets the background color to red.
bgWhite → const Ansi
Sets the background color to white.
bgYellow → const Ansi
Sets the background color to yellow.
black → const Ansi
Sets the foreground color to black.
blue → const Ansi
Sets the foreground color to blue.
bold → const Ansi
Applies bold/increased intensity formatting.
brightBlack → const Ansi
Sets the foreground color to bright black.
brightBlue → const Ansi
Sets the foreground color to bright blue.
brightCyan → const Ansi
Sets the foreground color to bright cyan.
brightGreen → const Ansi
Sets the foreground color to bright green.
brightMagenta → const Ansi
Sets the foreground color to bright magenta.
brightRed → const Ansi
Sets the foreground color to bright red.
brightWhite → const Ansi
Sets the foreground color to bright white.
brightYellow → const Ansi
Sets the foreground color to bright yellow.
conceal → const Ansi
Applies conceal/hidden formatting.
cyan → const Ansi
Sets the foreground color to cyan.
defaultFont → const Ansi
Resets to the default font.
doubleUnderline → const Ansi
Applies double underline formatting.
empty → const Ansi
Returns an empty Ansi instance.
encircled → const Ansi
Applies encircled formatting.
faint → const Ansi
Applies faint/decreased intensity formatting.
Applies fast blink formatting.
framed → const Ansi
Applies framed formatting.
green → const Ansi
Sets the foreground color to green.
inverse → const Ansi
Applies inverse/reverse video formatting (swaps foreground and background colors).
italic → const Ansi
Applies italic formatting.
magenta → const Ansi
Sets the foreground color to magenta.
overline → const Ansi
Applies overline formatting.
red → const Ansi
Sets the foreground color to red.
reset → const Ansi
Resets all ANSI formatting to default.
Applies slow blink formatting.
strikethrough → const Ansi
Applies strikethrough formatting.
subscript → const Ansi
Applies subscript formatting.
superscript → const Ansi
Applies superscript formatting.
underline → const Ansi
Applies underline formatting.
white → const Ansi
Sets the foreground color to white.
yellow → const Ansi
Sets the foreground color to yellow.