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 EventAction ¶
type EventAction = pty.EventAction
type Manager ¶
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.
type OutputBuffer ¶
type OutputBuffer = pty.OutputBuffer
Click to show internal directories.
Click to hide internal directories.