class

Egui::Terminal::Backend

Inherits Reference < Object

Instance methods

alive?
Source
close

Ask the child to die (async; the session reaps itself).

Source
evented_pass(frame_time : Float64) : Nil

One bounded evented scheduler pass per FRAME — under the native backend the sokol loop never yields to the Crystal scheduler, so this is what lets PTY data reach the reader fibers (see Session#evented_pass: a ~1 ms select, deduped by the frame time so every TermView/pump in one frame shares a single pass — the frame cost stays flat as sessions grow). The default is a no-op: fake/headless backends have no reader fibers. Call before #pump.

Source
exit_code

Exit code once dead, nil while alive/unknown.

Source
pump

Pull newly arrived PTY bytes into the emulator (and flush emulator replies back). Call once per frame; returns true when the visible state changed.

Source
resize(cols : Int32, rows : Int32) : Nil

Resize the emulator AND the PTY.

Source
term

The emulator state to render.

Source
write(bytes : Bytes) : Nil

Send input bytes to the child.

Source