tmux

package
v0.0.0-...-8dc656b Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: GPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMD_SELECT_WINDOW = `select-window`
	CMD_SEND_PREFIX   = `send-prefix`
)
View Source
const (
	START_ATTACH_SESSION = "attach-session"
	START_NEW_SESSION    = "new-session"
)

Variables

View Source
var CMD_CLIENT_REFRESH = "refresh-client"
View Source
var CMD_LIST_PANES = "list-panes"
View Source
var CMD_LIST_WINDOWS = "list-windows"

Functions

This section is empty.

Types

type PaneT

type PaneT struct {
	// contains filtered or unexported fields
}

func (*PaneT) AtBottom

func (p *PaneT) AtBottom() bool

func (*PaneT) Bottom

func (p *PaneT) Bottom() int32

func (*PaneT) BufSize

func (p *PaneT) BufSize() int

func (*PaneT) Close

func (p *PaneT) Close()

func (*PaneT) ExecuteShell

func (p *PaneT) ExecuteShell(func())

func (*PaneT) File

func (p *PaneT) File() *os.File

func (*PaneT) GetTerm

func (p *PaneT) GetTerm() types.Term

func (*PaneT) Id

func (p *PaneT) Id() string

func (*PaneT) Left

func (p *PaneT) Left() int32

func (*PaneT) Name

func (p *PaneT) Name() string

func (*PaneT) Pwd

func (p *PaneT) Pwd() string

func (*PaneT) Read

func (p *PaneT) Read() (rune, error)

func (*PaneT) Resize

func (p *PaneT) Resize(size *types.XY) error

func (*PaneT) Right

func (p *PaneT) Right() int32

func (*PaneT) SetName

func (p *PaneT) SetName(s string)

func (*PaneT) SetTerm

func (p *PaneT) SetTerm(term types.Term)

func (*PaneT) Top

func (p *PaneT) Top() int32

func (*PaneT) Write

func (p *PaneT) Write(b []byte) error

type Tmux

type Tmux struct {
	// contains filtered or unexported fields
}

func NewStartSession

func NewStartSession(renderer types.Renderer, size *types.XY, startCommand string) (*Tmux, error)

func (*Tmux) ActivePane

func (tmux *Tmux) ActivePane() *PaneT

func (*Tmux) ActiveWindow

func (tmux *Tmux) ActiveWindow() *WindowT

func (*Tmux) CloseWindow

func (tmux *Tmux) CloseWindow(winId string)

func (*Tmux) GetTermTiles

func (tmux *Tmux) GetTermTiles() *types.AppWindowTerms

func (*Tmux) ListKeyBindings

func (tmux *Tmux) ListKeyBindings()

func (*Tmux) NewWindow

func (tmux *Tmux) NewWindow()

NewWindow is a request sent to tmux to trigger a new window event

func (*Tmux) RefreshClient

func (tmux *Tmux) RefreshClient(size *types.XY) error

func (*Tmux) RenameWindow

func (tmux *Tmux) RenameWindow(win *WindowT, name string) error

func (*Tmux) SelectAndResizeWindow

func (tmux *Tmux) SelectAndResizeWindow(winId string, size *types.XY) error

func (*Tmux) SelectPane

func (tmux *Tmux) SelectPane(paneId string) error

func (*Tmux) SendCommand

func (tmux *Tmux) SendCommand(b []byte) (*tmuxResponseT, error)

func (*Tmux) SendCommandWithReflection

func (tmux *Tmux) SendCommandWithReflection(command string, t reflect.Type, parameters ...string) (any, error)

func (*Tmux) UpdateSession

func (tmux *Tmux) UpdateSession()

type WindowT

type WindowT struct {
	// contains filtered or unexported fields
}

func (*WindowT) Active

func (win *WindowT) Active() bool

func (*WindowT) ActivePane

func (win *WindowT) ActivePane() *PaneT

func (*WindowT) Id

func (win *WindowT) Id() string

func (*WindowT) Index

func (win *WindowT) Index() int

func (*WindowT) Name

func (win *WindowT) Name() string

func (*WindowT) Rename

func (win *WindowT) Rename(name string) error

Jump to

Keyboard shortcuts

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