Documentation
¶
Overview ¶
Package tmux bridges lazyclaude to tmux: pane discovery for Claude Code processes, live screen capture, key injection, and session lifecycle.
Index ¶
- func AttachCmd(paneID string) *exec.Cmd
- func Available() bool
- func Capture(paneID string, ansi bool) ([]string, error)
- func CreateSession(sessionName, cwd, command string) (paneID string, err error)
- func InsideTmux() bool
- func KillPane(paneID string) error
- func SelectPane(paneID string)
- func Send(paneID, text string) error
- func SwitchClient(paneID string) error
- type Pane
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachCmd ¶
AttachCmd builds the command to attach to the pane's session from outside tmux. Run it with the terminal released (tea.ExecProcess).
func Capture ¶
Capture returns the pane's visible screen. With ansi=true, SGR color/attr escape sequences are preserved.
func CreateSession ¶
CreateSession opens a new window (creating the session when missing), then launches the command via the interactive shell so user aliases apply.
func InsideTmux ¶
func InsideTmux() bool
InsideTmux reports whether lazyclaude itself runs inside tmux.
func SelectPane ¶
func SelectPane(paneID string)
SelectPane makes the pane active within its session (window + pane).
func Send ¶
Send types text into the pane and presses Enter. The literal text and the Enter key are sent separately (with a short gap) so the target's paste detection doesn't swallow the newline.
func SwitchClient ¶
SwitchClient moves the current tmux client to the pane's session. Only meaningful when running inside tmux.