Skip to main content

render_static_plain_text

Function render_static_plain_text 

Source
pub fn render_static_plain_text(
    tree: &SceneTree,
    cols: u16,
    rows: u16,
) -> String
Expand description

Stateless pure-text CLI renderer projecting tree directly into zero-ANSI UTF-8 text with zero previous-frame allocation and no event loop.

§Arguments

  • &SceneTree - Retained UI scene tree to render.
  • u16 - Target text width in columns.
  • u16 - Maximum text height in rows.

§Returns

  • String - Clean UTF-8 plain text containing zero ANSI escape sequences.