Skip to main content

Module buffer

Module buffer 

Source
Expand description

Double-buffered cell grid with clip stack and diff tracking. Double-buffer grid of Cells with clip-stack support.

Two buffers are maintained per frame (current and previous). Only the diff is flushed to the terminal, giving immediate-mode ergonomics with retained-mode efficiency.

Structs§

Buffer
A 2D grid of Cells backing the terminal display.

Enums§

BufferError
Error returned by checked buffer construction and resize.

Constants§

MAX_BUFFER_CELLS
Maximum cells allocated by one Buffer.
MAX_BUFFER_ROWS
Maximum row metadata entries allocated by one Buffer.