runtime

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapturePane

func CapturePane(name string, lines int) (string, error)

CapturePane captures the last N lines of output from a tmux pane.

func GetPaneTTY

func GetPaneTTY(name string) (string, error)

GetPaneTTY returns the TTY device of the tmux pane.

func HasSession

func HasSession(name string) bool

HasSession returns true if the tmux session exists.

func KillSession

func KillSession(name string) error

KillSession terminates a tmux session.

func NewSession

func NewSession(name, cwd string, env map[string]string) error

NewSession creates a new detached tmux session.

func SendKeys

func SendKeys(name, text string) error

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

func ValidateName(name string) error

ValidateName checks that a tmux session name is safe.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL