tmux

package
v0.4.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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