Vibe.TUI.Runtime (vibe v0.2.2)

Copy Markdown View Source

Startable terminal runtime for Vibe's interactive TUI.

Summary

Functions

Builds ordered repaint chunks used by render_frame/2 and regression tests.

Builds a complete synchronized terminal repaint frame.

Resizes the terminal loop and painter when the terminal dimensions change.

Functions

render_chunks(lines, arg, start_row \\ 1)

@spec render_chunks([IO.chardata()], {pos_integer(), pos_integer()}, pos_integer()) ::
  [IO.chardata()]

Builds ordered repaint chunks used by render_frame/2 and regression tests.

render_frame(lines, cursor, start_row \\ 1)

@spec render_frame([IO.chardata()], {pos_integer(), pos_integer()}, pos_integer()) ::
  IO.chardata()

Builds a complete synchronized terminal repaint frame.

resize_painter(loop, painter, arg)

Resizes the terminal loop and painter when the terminal dimensions change.

run(opts \\ [])

@spec run(keyword()) :: :ok | {:error, term()}