Egui::Terminal::Session
Inherits Egui::Terminal::Backend < Reference < Object
Constructors
Class methods
EGUI_FRAME_DEBUG also gates PTY-side logging (reader wakeups, evented-pass cost, session teardown) — see Backend::Sokol.
Instance methods
One bounded evented scheduler pass per FRAME, deduped by the frame's input time across every session in the process. Only needed by the LEGACY single-thread backend (sapp_run never yields, so PTY reader fibers would never run); with the detached render loop the scheduler is alive between frames and this is a no-op (Egui::Runtime.natural_scheduler?).
Child process pid, cached at spawn (the shim frees the session on reap). nil when the platform didn't provide one. Used by hosts for process-tree memory accounting.
Drain newly arrived bytes into the emulator (and flush emulator replies). Returns true when the visible state changed. The evented pass that fills the channel is #evented_pass — one per frame, shared by all sessions; a drain alone is cheap.