Module render

Module render 

Source
Expand description

Terminal rendering

Double buffering and efficient diff-based updates.

§Architecture

The rendering system is composed of:

  • Backend: Low-level terminal I/O abstraction (backend module)
  • Buffer: Double-buffered screen state
  • Cell: Individual terminal cell with character, colors, and modifiers
  • Terminal: High-level renderer that uses diff-based updates

Re-exports§

pub use backend::Backend;
pub use backend::BackendCapabilities;
pub use backend::CrosstermBackend;

Modules§

backend
Terminal backend abstraction

Structs§

BatchStats
Statistics for render batches
Buffer
A buffer holding the terminal state
Cell
A single cell in the terminal buffer
Change
A change to be applied to the terminal
Modifier
Modifier flags for cell styling (1 byte instead of 5)
RenderBatch
Batched render operations
Terminal
Terminal backend for rendering

Enums§

RenderOp
A single render operation

Functions§

diff
Compute the differences between two buffers within specified dirty regions.
stdout_terminal
Create a terminal with stdout