Skip to main content

render_view

Function render_view 

Source
pub fn render_view(
    terminal: &mut (impl CommandWriter + TerminalQuery + ?Sized),
    view: &View,
) -> Result<Option<TerminalGraphicsProtocol>>
Expand description

Resolves and renders one complete View at the terminal’s top-left cell.

Image components embedded in the View are discovered internally. The terminal is queried for current geometry and positively confirmed capabilities; output prefers Kitty, then Sixel when cell-pixel geometry is available, and otherwise leaves the View’s text fallbacks visible.

This operation retains no graphics state after it returns. Interactive renderers that reconcile multiple frames own their caches and lifecycle state.