TerminalColorSupport enum

Levels of terminal color support.

Based on https://github.com/webdiscus/ansis/blob/master/src/color-support.js

Inheritance
Available extensions

Values

none → const TerminalColorSupport

No color support - plain text output only.

ansi16 → const TerminalColorSupport

Basic 16 ANSI colors (standard + bright variants).

Uses escape codes like \x1B[31m (red) or \x1B[91m (bright red).

ansi256 → const TerminalColorSupport

Extended 256-color palette (xterm colors).

Uses escape codes like \x1B[38;5;196m (color index 196). Includes the 16 basic colors, a 6x6x6 color cube, and 24 grayscale shades.

truecolor → const TerminalColorSupport

True color / 24-bit RGB support (16.7 million colors).

Uses escape codes like \x1B[38;2;255;128;0m (RGB values).

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supports256 bool
Whether 256-color mode is supported.
no setter
supportsColors bool
Whether any color output is supported.
no setter
supportsTruecolor bool
Whether true color (24-bit RGB) is supported.
no setter

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

Constants

values → const List<TerminalColorSupport>
A constant List of the values in this enum, in order of their declaration.