ConsoleColor class sealed
A color for console output, supporting both indexed (256-color) and RGB (truecolor) modes.
Use IndexedColor for the 256-color xterm palette, or RgbColor for arbitrary 24-bit colors. For predefined colors, see Ansi16 and Ansi256.
Example
// Using predefined colors
buffer.pushStyle(foreground: Ansi16.red);
buffer.pushStyle(foreground: Ansi256.orange1_214);
// Using indexed colors directly
buffer.pushStyle(foreground: IndexedColor(196)); // red
// Using RGB colors (truecolor)
buffer.pushStyle(foreground: RgbColor(255, 128, 0)); // orange
- Implementers
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited