Documentation
¶
Overview ¶
The TUI runs on Bubble Tea v2 while portalis still speaks v1. This file is the seam between the two: v2 input messages are rewritten into the v1 shapes the emulator consumes, and the emulator's v1 commands are wrapped back into v2 commands.
Package embeddedterm hosts an interactive command in a PTY-backed terminal.
Index ¶
- func Environment(reviewRange, base, head, headRev, prURL, sha, reviewedFile string) []string
- type StateMsg
- type Terminal
- func (t *Terminal) Available() bool
- func (t *Terminal) Close()
- func (t *Terminal) Err() error
- func (t *Terminal) Handles(msg tea.Msg) bool
- func (t *Terminal) Init() tea.Cmd
- func (t *Terminal) Resize(width, height int)
- func (t *Terminal) Update(msg tea.Msg) tea.Cmd
- func (t *Terminal) View(width, height int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Environment ¶
Environment builds the context exposed to an embedded diff command. reviewedFile is the per-PR reviewed-marks JSON (path → fingerprint); an external reviewer that honors it shares live-pr's per-PR review progress instead of keeping its own global state.
Types ¶
type StateMsg ¶
type StateMsg struct{ SessionID string }
StateMsg asks the host to redraw after a terminal state change.
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
Terminal embeds one interactive process and its VT screen.
func New ¶
New prepares command for execution in cwd. Environment values are appended to the inherited process environment by the PTY implementation.
func (*Terminal) Init ¶
Init starts the child before returning its first output listener. Synchronous spawn prevents a late-starting reviewer from escaping shutdown ownership.