mux

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(s string, pr environ.Properties) string

Types

type Muxer

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

func (*Muxer) IsRemote

func (m *Muxer) IsRemote() bool

func (*Muxer) TTY

func (m *Muxer) TTY() string

func (*Muxer) Wrap

func (m *Muxer) Wrap(s string) string

type Muxers

type Muxers []*Muxer

func FindTerminalProcess

func FindTerminalProcess(pid int32) (procTerm *process.Process, ttyInner string, envInner environ.Properties, passages Muxers, e error)

func (Muxers) IsRemote

func (m Muxers) IsRemote() bool

func (Muxers) String

func (m Muxers) String() string

func (Muxers) Wrap

func (m Muxers) Wrap(s string) string

type TmuxClient

type TmuxClient struct {
	// for usage with tmux command list-clients
	SessionID        string
	SessionName      string
	PID              uint
	SessionWindows   uint
	ClientPID        uint
	ClientTermname   string
	ClientName       string
	ClientTTY        string
	ClientUTF8       bool
	ClientWidth      uint
	ClientHeight     uint
	ClientCellWidth  uint
	ClientCellHeight uint
}

func (*TmuxClient) Args

func (p *TmuxClient) Args() []string

type TmuxInfo

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

func (*TmuxInfo) ClientPIDOfPane

func (i *TmuxInfo) ClientPIDOfPane(paneID string) int32

func (*TmuxInfo) Query

func (i *TmuxInfo) Query() error

type TmuxPane

type TmuxPane struct {
	// for usage with tmux command list-panes
	PaneWidth  uint
	PaneHeight uint
	PaneLeft   uint
	// PaneRight uint
	PaneTop uint
	// PaneBottom uint
	PaneID    string
	PaneIndex uint
	PanePID   string
	PaneTTY   string
	// PanePipe    bool
	// PaneCurrentCommand string
	// AlternateOn bool
	// OriginFlag bool
	WindowID    string
	WindowIndex uint
	// WindowName string
	SessionID string
	// SessionName string
	PID uint // server pid
}

func (*TmuxPane) Args

func (p *TmuxPane) Args() []string

Jump to

Keyboard shortcuts

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