tmux

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(name string) error

Attach attempts to attach to a currently active tmux window.

func CreateSession

func CreateSession(command, name string) ([]byte, error)

CreateSession starts a named tmux session that runs a single command. If a session is already active, a new window for the server will be created.

func Exec

func Exec(command, name string) error

Exec creates a command to send keys to the tmux session.

func IsServerRunning

func IsServerRunning(name string) bool

IsServerRunning checks if a window with the given name exists.

func IsSessionRunning

func IsSessionRunning() bool

IsSessionRunning checks if our Minecraft tmux session is running.

func KillWindow

func KillWindow(name string) error

KillWindow closes an active tmux window.

func ListSessions

func ListSessions() (string, error)

ListSessions gets the list of active tmux sessions.

func ListWindows

func ListWindows() (string, error)

ListWindows gets the list of active tmux windows.

Types

This section is empty.

Jump to

Keyboard shortcuts

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