engine/terminal_engine
library
Classes
-
TerminalEngine
-
Public, consumer-facing handle to the alacritty engine.
-
TerminalGridView
-
Read-only view of the terminal grid that the engine exposes to consumers.
Constants
-
kMinTerminalColumns
→ const int
-
Smallest grid the VT model can represent. A fullwidth glyph writes its cell
plus a trailing spacer, so a single-column grid makes the engine index past
the row end and panic. The native engine clamps to this floor at its size
boundary; producers (viewport layout, PTY geometry) clamp here too so they
never even ask for a degenerate grid. Keep in sync with
MIN_COLUMNS /
MIN_SCREEN_LINES in rust/src/engine.rs.
-
kMinTerminalRows
→ const int
-
Typedefs
-
EngineFactory
= EngineBinding Function({required int columns, required EngineConfig engineConfig, required void onBell(), required void onClipboard(String), required void onClipboardLoad(), required void onNotify(String), required void onPtyWrite(Uint8List), required void onTitle(String), required void onWorkingDir(String), required int rows})
-
Factory that builds an EngineBinding given the engine event callbacks.
The four callbacks are wired into private streams/notifiers on
TerminalEngine — consumers never see the raw
on* callbacks.