Documentation
¶
Overview ¶
Package tmux provides an interface for a subset of tmux functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasSession ¶
HasSession returns true if tmux is running a session named "sid".
func KillSession ¶
KillSession destroys a session, terminating all its child processes. If the session identifier does not belong to pmux returns an error.
func ListSessions ¶
ListSessions returns the session identifiers of the running sessions started by pmux. Valid partial results may be returned (i.e. even though the error returned is not nil, the list of session identifiers up to that point may be valid).
func NewSession ¶
NewSession creates a new tmux session using "name" as the name of the executable to be started, and "sid" as tmux session identifier. "sid" will be validated using the `validateSID` function, and the function will return an error if the validation does not pass. Use `NewSID` to build a valid session identifier, or validate it first manually. Note that there are no guarantees that the session will still be running after this function returns.
Types ¶
This section is empty.