TermUI.Runtime.NodeRenderer (TermUI v0.2.0)
View SourceConverts render trees to buffer cells for terminal output.
This module bridges the gap between the component's render tree output and the low-level buffer cell representation needed for terminal rendering.
Supports both tuple-based render nodes (from TermUI.Elm.Helpers) and struct-based RenderNodes (from TermUI.Component.RenderNode).
Summary
Functions
Renders a node tree to the buffer starting at the given position.
Functions
@spec render_to_buffer( term(), TermUI.Renderer.BufferManager.t() | pid(), pos_integer(), pos_integer() ) :: {non_neg_integer(), non_neg_integer()}
Renders a node tree to the buffer starting at the given position.
Returns the bounds of the rendered content as {width, height}.