TerminalTheme class

The colours of a TerminalView: the cursor, the selection, the default foreground and background, the 16 ANSI colours, and three search-hit colours that xterm 4.0.0 never paints (kept for the API).

TerminalView converts it to ghostty_dart_flutter's VtTerminalTheme, which has the same 23 fields.

Constructors

TerminalTheme({required Color cursor, required Color selection, required Color foreground, required Color background, required Color black, required Color white, required Color red, required Color green, required Color yellow, required Color blue, required Color magenta, required Color cyan, required Color brightBlack, required Color brightRed, required Color brightGreen, required Color brightYellow, required Color brightBlue, required Color brightMagenta, required Color brightCyan, required Color brightWhite, required Color searchHitBackground, required Color searchHitBackgroundCurrent, required Color searchHitForeground})
Creates a theme from its 23 colours.
const

Properties

background → Color
The default background colour.
final
black → Color
ANSI colour black (palette entries 0-7).
final
blue → Color
ANSI colour blue (palette entries 0-7).
final
brightBlack → Color
ANSI colour bright black (palette entries 8-15).
final
brightBlue → Color
ANSI colour bright blue (palette entries 8-15).
final
brightCyan → Color
ANSI colour bright cyan (palette entries 8-15).
final
brightGreen → Color
ANSI colour bright green (palette entries 8-15).
final
brightMagenta → Color
ANSI colour bright magenta (palette entries 8-15).
final
brightRed → Color
ANSI colour bright red (palette entries 8-15).
final
brightWhite → Color
ANSI colour bright white (palette entries 8-15).
final
brightYellow → Color
ANSI colour bright yellow (palette entries 8-15).
final
cursor → Color
The cursor's colour.
final
cyan → Color
ANSI colour cyan (palette entries 0-7).
final
foreground → Color
The default text colour.
final
green → Color
ANSI colour green (palette entries 0-7).
final
hashCode → int
The hash code for this object.
no setterinherited
magenta → Color
ANSI colour magenta (palette entries 0-7).
final
red → Color
ANSI colour red (palette entries 0-7).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchHitBackground → Color
The searchHitBackground colour; never painted, as in xterm 4.0.0.
final
searchHitBackgroundCurrent → Color
The searchHitBackgroundCurrent colour; never painted, as in xterm 4.0.0.
final
searchHitForeground → Color
The searchHitForeground colour; never painted, as in xterm 4.0.0.
final
selection → Color
The selection's colour, painted over the selected cells.
final
white → Color
ANSI colour white (palette entries 0-7).
final
yellow → Color
ANSI colour yellow (palette entries 0-7).
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