TerminalPaletteService class final

Message-driven cache and probe helper for terminal palette reports.

This sits above the low-level OSC report messages and gives hosts one place to request, cache, and query terminal colors.

Constructors

TerminalPaletteService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapshot TerminalPaletteSnapshot
Latest cached snapshot.
no setter

Methods

clear() → void
Clears all cached terminal colors.
handle(Msg msg) bool
Updates cached values from a terminal color report.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestAnsiPalette({int count = 16}) Cmd
Requests the ANSI palette range [0, count).
requestCoreColors({bool includeCursor = true}) Cmd
Requests foreground/background reports and optionally the cursor color.
requestPalette(Iterable<int> indices) Cmd
Requests a normalized set of palette slot reports.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited