tmux

package
v0.0.0-...-ed293d0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package tmux provides interface

import (
    "fmt"
    "github.com/jvzantvoort/tmux-project/tmux"
)
tmux := tmux.NewTmux()

Index

Constants

View Source
const (
	TerminalType string = "screen-256color"
	TerminalLang string = "en_US.UTF-8"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tmux

type Tmux struct {
	CommandPath string
	CommandCwd  string
}

func NewTmux

func NewTmux() *Tmux

func (Tmux) CreateSession

func (t Tmux) CreateSession(sess sessions.TmuxSession)

func (Tmux) Exec

func (t Tmux) Exec(args ...string) ([]string, []string, error)

func (Tmux) ListActive

func (t Tmux) ListActive() ([]string, error)

func (Tmux) ResumeSession

func (t Tmux) ResumeSession(sess sessions.TmuxSession)

func (Tmux) SessionExists

func (t Tmux) SessionExists(sessionname string) bool

Jump to

Keyboard shortcuts

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