mux

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager runs the lsmux TUI.

func NewManager

func NewManager(cfg conf.Config, names []string, command []string, stdinData []byte, initialHosts []string, hold bool, allowLayoutChange bool, options SessionOptions) (*Manager, error)

NewManager creates an lsmux manager.

func (*Manager) Run

func (m *Manager) Run() error

Run starts the mux UI.

type RemoteSession

type RemoteSession struct {
	Server  string
	Config  conf.ServerConfig
	Notices []string

	Connect  *sshlib.Connect
	Terminal *sshlib.Terminal
	Backend  *tvxterm.StreamBackend
	LogPath  string
}

RemoteSession owns a mux pane SSH connection.

func (*RemoteSession) OpenSFTP

func (s *RemoteSession) OpenSFTP() (*sftp.Client, error)

OpenSFTP opens an SFTP client that reuses the pane connection settings.

type SessionFactory

type SessionFactory func(server string, cols, rows int) (*RemoteSession, error)

SessionFactory creates remote sessions for panes.

func NewSessionFactory

func NewSessionFactory(cfg conf.Config, command []string, options SessionOptions) SessionFactory

type SessionOptions

type SessionOptions struct {
	PortForward                   []*conf.PortForward
	ReverseDynamicPortForward     string
	HTTPReverseDynamicPortForward string
	NFSReverseDynamicForwardPort  string
	NFSReverseDynamicForwardPath  string
	SMBReverseDynamicForwardPort  string
	SMBReverseDynamicForwardPath  string
	X11                           bool
	X11Trusted                    bool
	IsBashrc                      bool
	IsNotBashrc                   bool
	ControlMasterOverride         *bool
	ParallelInfo                  func(server string) []string
}

SessionOptions stores lsmux per-pane connection overrides.

Jump to

Keyboard shortcuts

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