Documentation
¶
Index ¶
- func CapturePane(name string, lines int) (string, error)
- func GetPaneTTY(name string) (string, error)
- func HasSession(name string) bool
- func KillSession(name string) error
- func NewSession(name, cwd string, env map[string]string) error
- func SendKeys(name, text string) error
- func ValidateName(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapturePane ¶
CapturePane captures the last N lines of output from a tmux pane.
func GetPaneTTY ¶
GetPaneTTY returns the TTY device of the tmux pane.
func HasSession ¶
HasSession returns true if the tmux session exists.
func NewSession ¶
NewSession creates a new detached tmux session.
func SendKeys ¶
SendKeys sends text input to a tmux session. For short text (<200 chars, no newlines): uses send-keys -l. For long/multiline text: writes to temp file, uses load-buffer + paste-buffer.
func ValidateName ¶
ValidateName checks that a tmux session name is safe.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.