Vibe.TUI.Renderer (vibe v0.2.0)

Copy Markdown View Source

Terminal renderer for Vibe's semantic UI view model.

This renderer delegates layout to the declarative chat view and returns iodata lines. Semantic state lives in Vibe.UI.

Summary

Types

line()

@type line() :: IO.chardata()

Functions

render(view, width, theme \\ Theme.default())

@spec render(Vibe.UI.ViewModel.t(), pos_integer(), Vibe.TUI.Theme.t()) :: [line()]

render_frame(snapshot, theme, state, opts \\ [])