TerminalConfig class

Immutable, programmatic terminal configuration. Build with TerminalConfig.defaults

  • copyWith, or parse from TOML via fromTomlString. No file IO here — that lives in ConfigLoader, so a library host can use this directly with no file.

Constructors

TerminalConfig({required TerminalColors colors, required FontConfig font, required CursorConfig cursor, required ScrollConfig scrolling, required MouseConfig mouse, required BellConfig bell, required ImeConfig ime, required ShellConfig shell, required KeyboardConfig keyboard, required WindowConfig window, required SelectionConfig selection, required TerminalBehaviorConfig terminal})
const
TerminalConfig.defaults()
Stock look-and-feel. Font family/fallback follow VS Code editor defaults per platform (see PlatformFontDefaults).
factory

Properties

bell BellConfig
final
colors TerminalColors
final
cursor CursorConfig
final
engineConfig → EngineConfig
Palette + scrollback handed to the Rust engine. palette is length 18: 0..15 ANSI, 16 fg, 17 bg.
no setter
font FontConfig
final
hashCode int
The hash code for this object.
no setterinherited
ime ImeConfig
final
keyboard KeyboardConfig
final
mouse MouseConfig
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrolling ScrollConfig
final
searchMatchColors SearchMatchColors
Opaque fg/bg pairs for search match highlighting (alacritty replaces cell colors).
no setter
selection SelectionConfig
final
selectionOverlay int
Translucent overlay color (ARGB) the painter draws over selected cells.
no setter
shell ShellConfig
final
style TerminalStyle
Font/size slice consumed by TerminalView.
no setter
terminal TerminalBehaviorConfig
final
textStyle TextStyle
TextStyle the renderer measures cells from and feeds the glyph cache.
no setter
theme TerminalTheme
Theme slice consumed by TerminalView. Source of truth stays here.
no setter
window WindowConfig
final

Methods

copyWith({TerminalColors? colors, FontConfig? font, CursorConfig? cursor, ScrollConfig? scrolling, MouseConfig? mouse, BellConfig? bell, ImeConfig? ime, ShellConfig? shell, KeyboardConfig? keyboard, WindowConfig? window, SelectionConfig? selection, TerminalBehaviorConfig? terminal}) TerminalConfig
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

Static Methods

fromTomlString(String input) TerminalConfig
Parse an alacritty-style TOML document. Unknown keys are ignored; any missing or malformed field keeps its default. Pure — no file IO.