tmux

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tmux provides a thin event-aware wrapper around the shared github.com/chainreactors/utils/pty manager. Command parsing and routing live in pkg/commands; this package only owns terminal sessions.

Index

Constants

View Source
const (
	StateRunning   = pty.StateRunning
	StateCompleted = pty.StateCompleted
	StateKilled    = pty.StateKilled
	StateFailed    = pty.StateFailed
)
View Source
const (
	EventSessionCreated = pty.EventSessionCreated
	EventSessionUpdated = pty.EventSessionUpdated
	EventSessionOutput  = pty.EventSessionOutput
	EventSessionClosed  = pty.EventSessionClosed
)
View Source
const (
	DefaultTimeout   = pty.DefaultTimeout
	DefaultBufferCap = pty.DefaultBufferCap
)

Variables

View Source
var (
	NewOutputBuffer         = pty.NewOutputBuffer
	NewOutputBufferWithFile = pty.NewOutputBufferWithFile
)

Re-export buffer constructors.

View Source
var (
	ShellCommand        = pty.ShellCommand
	DefaultShellCommand = pty.DefaultShellCommand
)

Re-export shell helpers.

View Source
var FormatCompletion = pty.FormatCompletion

Re-export formatting.

Functions

This section is empty.

Types

type Event

type Event = pty.Event

type EventAction

type EventAction = pty.EventAction

type Info

type Info = pty.Info

type Manager

type Manager struct {
	*pty.Manager
	// contains filtered or unexported fields
}

Manager wraps pty.Manager and exposes aiscan's event subscription API.

func NewManager

func NewManager() *Manager

NewManager creates a Manager backed by a fresh pty.Manager.

func (*Manager) Subscribe

func (m *Manager) Subscribe(fn func(Event)) func()

Subscribe registers an event listener and returns an unsubscribe function.

type OutputBuffer

type OutputBuffer = pty.OutputBuffer

type State

type State = pty.State

Jump to

Keyboard shortcuts

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