TerminalRenderFrame
Short-lived primitive view of the terminal's render state for one viewport.
A frame exposes stable public render encodings, not core internal storage. Consumers should copy rows into caller-owned primitive arrays during the enclosing TerminalRenderFrameReader.readRenderFrame callback.
Properties
Currently active terminal screen buffer.
Current render cursor overlay state.
Number of history lines discarded due to ring buffer capacity wrapping.
Monotonic generation that changes on any visually relevant mutation.
Number of retained off-screen history lines available in this frame.
Currently active resolved color palette.
Clamped scrollback offset used by this frame, in lines from the live bottom viewport. Zero means the frame is pinned to the newest output.
Generation that changes when terminal-owned row mapping or shape changes.
Functions
Copies the current cursor overlay state into sink.
Copies one visible row into caller-owned primitive arrays.
Returns the generation for visible row.
Reports whether visible row soft-wraps into the next row.