EngineBinding class abstract

Abstracts the FRB engine calls so the client is testable without the native lib. Returns native GridUpdates (translation from FRB types lives in the FRB-backed implementation).

Implementers

Constructors

EngineBinding()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

advance(Uint8List bytes) → Future<void>
advanceAndTakeDamage(Uint8List bytes) → Future<GridUpdate>
Parse PTY bytes and return damage in one FFI hop (preferred hot path).
clearHistory() → void
dispose() → void
fullSnapshot() → GridUpdate
Full viewport snapshot (sync). Used after resize when damage is Full.
fullSnapshotSearched() → GridUpdate
Full viewport snapshot with search match flags applied.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pumpEvents() → void
Drain queued terminal→host events and dispatch them (PtyWrite/Title/…). Kept on the binding so the client stays free of FRB event types.
reconfigure(EngineConfig config) → void
resize(int columns, int rows) → void
respondClipboardLoad(String text) → void
scrollLines(int delta) → Future<GridUpdate>
scrollPixels(double deltaPx) → Future<GridUpdate>
Sub-cell pixel scroll. Positive deltaPx scrolls up into history.
scrollToBottom() → Future<GridUpdate>
scrollToOffset(double offsetLines) → Future<GridUpdate>
Absolute scroll offset in lines (0 = live bottom).
scrollToTop() → Future<GridUpdate>
searchClear() → void
searchIsActive() → bool
searchNext() → bool
searchPrev() → bool
searchSet(String pattern, {TerminalSearchOptions options = const TerminalSearchOptions()}) → bool
selectionClear() → void
selectionStart(int displayRow, int col, bool rightHalf, int kind) → void
selectionText() → String?
selectionUpdate(int displayRow, int col, bool rightHalf) → void
setCellPixels(int width, int height) → void
takeDamage() → Future<GridUpdate>
toString() → String
A string representation of this object.
inherited

Operators

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