Vibe.TUI.App (vibe v0.2.3)

Copy Markdown View Source

Minimal terminal app coordinator.

This module keeps terminal mechanics out of semantic UI state. It accepts key events and resize events, delegates editing to Vibe.UI.EditorServer, and dispatches semantic commands to Vibe.Session.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

key(server, key)

@spec key(GenServer.server(), Vibe.UI.Editor.key()) :: :ok

resize(server, columns, rows)

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

snapshot(server)

@spec snapshot(GenServer.server()) :: map()

start_link(opts \\ [])

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

subscribe(server, pid \\ self())

@spec subscribe(GenServer.server(), pid()) :: :ok