Writing a Backend¶
Backends consume:
- An immutable
Grid - Optional
Damageregions (Damage,Rect)
Backends MUST:
- Treat
Cell::Continuationas non-rendering. - Render wide glyphs only from the lead cell.
- Respect the style model in
Style(overlay semantics are applied by the renderer).
Backends SHOULD:
- Redraw only damaged cells when
Damageis available. - Coalesce adjacent cells into spans to reduce output churn.
- Track current style state and emit deltas rather than full resets.
Rendering Rule Summary¶
Cell::EmptyMAY be rendered as a space.- Cells that contain glyphs are rendered as visible content.
- Continuation cells do not render glyphs.