Vibe.Terminal.Pane (vibe v0.2.2)

Copy Markdown View Source

Supervised Ghostty terminal + optional PTY pane.

This powers embedded terminal surfaces for TUI and future LiveView widgets. It is intentionally separate from the semantic Vibe chat UI.

Summary

Types

snapshot_format()

@type snapshot_format() :: :plain | :html | :vt

Functions

child_spec(init_arg)

@spec child_spec(keyword()) :: Supervisor.child_spec()

Returns a specification to start this module under a supervisor.

See Supervisor.

close(pane)

@spec close(GenServer.server()) :: :ok

render_state(pane)

@spec render_state(GenServer.server()) :: {:ok, map()} | {:error, term()}

resize(pane, cols, rows)

@spec resize(GenServer.server(), pos_integer(), pos_integer()) :: :ok

snapshot(pane, format \\ :plain)

@spec snapshot(GenServer.server(), snapshot_format()) ::
  {:ok, binary()} | {:error, term()}

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()

write(pane, data)

@spec write(GenServer.server(), iodata()) :: :ok