Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Path is the default path to the tmux executable on disk. Path = "/usr/bin/tmux" // SessionName is the string to use when naming a tmux session. SessionName = "mdrip" )
Variables ¶
This section is empty.
Functions ¶
func IsProgramInstalled ¶
IsProgramInstalled checks for tmux.
Types ¶
type Tmux ¶
type Tmux struct {
// contains filtered or unexported fields
}
Tmux holds information about a tmux process (https://github.com/tmux/tmux).
func (Tmux) Write ¶
Write bytes to a tmux session for interpretation as shell commands.
Uses this kludge:
writes bytes to a temp file, tells tmux to load that file into a tmux paste buffer, then tells tmux to 'paste' it into a session for what looks a lot like use-behavior. yay tmux.
TODO: look for a better tmux api (dbus?)
Click to show internal directories.
Click to hide internal directories.