FrbEngineBinding class
FRB-backed binding. Owns the engine handle, translates FRB RenderUpdate
into native GridUpdate, and dispatches polled terminal→host events.
- Implemented types
Constructors
- FrbEngineBinding({required int columns, required int rows, required void onPtyWrite(Uint8List), required void onTitle(String text), required void onBell(), required void onClipboard(String text), required void onClipboardLoad(), required void onWorkingDir(String text), required void onNotify(String text), required EngineConfig engineConfig})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onBell → void Function()
-
final
- onClipboard → void Function(String text)
-
final
- onClipboardLoad → void Function()
-
final
- onNotify → void Function(String text)
-
final
- onPtyWrite → void Function(Uint8List)
-
final
- onTitle → void Function(String text)
-
final
- onWorkingDir → void Function(String text)
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
advance(
Uint8List bytes) → Future< void> -
override
-
advanceAndTakeDamage(
Uint8List bytes) → Future< GridUpdate> -
Parse PTY bytes and return damage in one FFI hop (preferred hot path).
override
-
clearHistory(
) → void -
override
-
dispose(
) → void -
override
-
fullSnapshot(
) → GridUpdate -
Full viewport snapshot (sync). Used after resize when damage is
Full.override -
fullSnapshotSearched(
) → GridUpdate -
Full viewport snapshot with search match flags applied.
override
-
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.
override
-
reconfigure(
EngineConfig config) → void -
override
-
resize(
int columns, int rows) → void -
override
-
resolveHyperlink(
int id) → String? -
override
-
respondClipboardLoad(
String text) → void -
override
-
scrollLines(
int delta) → Future< void> -
override
-
scrollPixels(
double deltaPx) → Future< void> -
Sub-cell pixel scroll. Positive
deltaPxscrolls up into history.override -
scrollToBottom(
) → Future< void> -
override
-
searchClear(
) → void -
override
-
searchNext(
) → bool -
override
-
searchPrev(
) → bool -
override
-
searchSet(
String pattern) → bool -
override
-
selectionClear(
) → void -
override
-
selectionStart(
int displayRow, int col, bool rightHalf, int kind) → void -
override
-
selectionText(
) → String? -
override
-
selectionUpdate(
int displayRow, int col, bool rightHalf) → void -
override
-
setCellPixels(
int width, int height) → void -
override
-
takeDamage(
) → Future< GridUpdate> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited