TerminalColorTheme class

A lightweight container for a 16-color terminal palette plus the usual extra accents (background, cursor, etc.).

All colors are immutable and expressed as full 32-bit ARGB values (0xFFrrggbb) so they can be used directly in any Flutter Color context.

Constructors

TerminalColorTheme({required Map<int, Color> palette, required Color background, required Color foreground, required Color cursorColor, required Color selectionBackground, required Color selectionForeground})
const

Properties

background Color
Default terminal background.
final
cursorColor Color
Caret / cursor color.
final
foreground Color
Default terminal foreground (text) color.
final
hashCode int
The hash code for this object.
no setterinherited
palette Map<int, Color>
16-entry color table keyed by ANSI index (0-15).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionBackground Color
Selection highlight background.
final
selectionForeground Color
Selection highlight foreground (text when selected).
final

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

materialDark → const TerminalColorTheme
The theme defined in your prompt, ready to drop in.