TerminalEngineClient class
Coalesces PTY output per frame and feeds it to the engine off the UI thread,
then applies the returned damage to the grid. A single advance is ever in
flight (_advancing), giving natural backpressure under heavy output.
Constructors
- TerminalEngineClient({required EngineBinding binding, required MirrorGrid grid, void schedule(void ())?})
Properties
- binding → EngineBinding
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearHistory(
) → void -
dispose(
) → void -
drainForTest(
) → Future< void> -
Runs any pending PTY ingest immediately. For unit/widget tests that do not
pump frames (the default
scheduleuses post-frame callbacks). -
feed(
Uint8List bytes) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pumpEventsNow(
) → void - Drain terminal→host events synchronously (e.g. OSC 52 paste reply).
-
refreshView(
) → void - Re-applies the current viewport. Always uses the searched snapshot — the Rust side short-circuits to a plain snapshot when no search is active, so this is the same cost when idle and removes a class of Dart-side flag- desync bugs (e.g. a stale _searchActive after engine restart leaving match highlights stuck or absent).
-
resize(
int columns, int rows) → void -
resolveHyperlink(
int id) → String? -
scheduleScrollBy(
int delta) → void - Coalesced scroll. Multiple calls within one scheduling tick aggregate into a single FFI scrollLines + refreshView. Use this for input-driven scroll paths (wheel, trackpad pan, touch fling) where the per-event snapshot rate would otherwise saturate the UI thread.
-
scheduleScrollByPixels(
double deltaPx) → void -
Coalesced sub-cell pixel scroll (smooth wheel / trackpad / fling). Positive
deltaPxscrolls up into history. Aggregates with scheduleScrollBy into a single per-frame flush. See scheduleScrollBy for the scheduling model. -
scrollLines(
int delta) → Future< void> -
scrollToBottom(
) → Future< void> -
searchClear(
) → void -
searchNext(
) → bool -
searchPrev(
) → bool -
searchSet(
String pattern) → bool -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited