Documentation
¶
Overview ¶
Package attach plans the TUI's full-screen attach to an agent's window (docs/TUI.md "Full-screen attach"): a nested tmux client of otag's server run with tea.ExecProcess, or, inside the user's own tmux, a full-screen display-popup that runs that client. The return keys (M-q, C-q, the "← otag" status button) detach it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct {
TMUX string // $TMUX: the user's own tmux server ("" = not inside tmux)
TMUXPane string // $TMUX_PANE: the TUI's pane in it
Outer string // the user's tmux binary
Version string // its `tmux -V` ("" unknown: no popup)
Environ []string // the TUI's environment
}
Env is where the TUI runs.
type Plan ¶
Plan is a command ready to run.
func Decide ¶
Decide picks the popup inside the user's tmux when it has display-popup -B (3.3), else a nested client in the TUI's own terminal.