Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

Perl API

API reference

Browse the Perl types and operations for working with tmux. Start with the core objects below, or search for a type or member.

Server 1 type
Server class In LibTmux 43 members

Explicit tmux acquisition and commands

Session 1 type
Session class 11 members

Captured session entity

Window 2 types
Window class 13 members

Captured window entity

WindowLink class 10 members

Captured window_link entity

Pane 1 type
Pane class 18 members

Captured pane entity

Client 1 type
Client class 12 members

Captured client entity

Commands 3 types
Operation class 6 members

Executor-independent prepared command continuations

ProcessJob class 8 members

Shared owned process-supervision boundary

Transport class In LibTmux 2 members

Supervised literal process execution

Queries 10 types
ClientSelection class 10 members

Native array selection of captured client entities

Filter class 9 members

Validated, reusable local criteria and explicit wire data

PaneSelection class 10 members

Native array selection of captured pane entities

QueryPlan class 4 members

Explainable explicit pane acquisition

Schema class 1 member

Catalog and explicit record adapters

Selection class 10 members

Native array selections with fixed query returns

Iterator class 1 member

Local cursor over frozen membership

SessionSelection class 10 members

Native array selection of captured session entities

WindowLinkSelection class 10 members

Native array selection of captured window_link entities

WindowSelection class 10 members

Native array selection of captured window entities

Snapshots 1 type
Snapshot class 14 members

Captured graph with explicit completeness

Errors 24 types
X class In LibTmux::Async

Shutdown has started and new work is refused. Callers may still observe cleanup through "close" in LibTmux::Async::Transport.

Closed exception

Shutdown has started and new work is refused. Callers may still observe cleanup through "close" in LibTmux::Async::Transport.

QueueFull exception

The configured running and pending limits are occupied. No command was submitted for this request. Returned through a failed Future.

X class In LibTmux 12 members

Typed failures with readable diagnostics

AcquisitionRace exception 12 members

Observed generations or topology changed during capture.

Cancelled exception 12 members

Execution was cancelled; cancellation does not roll back effects.

Codec exception 12 members

A tmux record or field could not be decoded.

Command exception 12 members

tmux reported nonzero status; result retains stdout/stderr/status.

Creation exception 14 members

A creation command succeeded but subsequent receipt decoding or capture failed. created returns a minimal generation-scoped entity handle when the command's receipt was decoded; other fields remain unloaded. cause preserves the original acquisition failure. dispatched is true. The returned handle permits explicit, generation-checked cleanup; absent receipts leave effects uncertain. See "new_session" in LibTmux::Server.

InvalidArgument exception 12 members

Invalid operation or transport argument before dispatch.

InvalidFilter exception 12 members

Invalid criteria data; path, expected, and received describe the boundary.

InvalidSelection exception 12 members

Undefined, hole, wrong-kind, or incompatible-generation membership.

MultipleMatches exception 12 members

At least two occurrences matched. matched_ids preserves occurrence diagnostics.

NoMatch exception 12 members

No occurrence matched one().

NoSuchTarget exception 12 members

The selected stable target no longer exists. Native result diagnostics are retained. This differs from a stale generation and from an arbitrary command failure; acquire a new snapshot before choosing recovery.

OutputLimit exception 12 members

Retained process output exceeded the configured bound.

QueryMismatch exception 12 members

Native candidates disagree with captured local matches, or an expert native query returned an uncaptured ID. details->{verification} contains the detached "VERIFICATION REPORT" in LibTmux::Server. The cause may be concurrent change, a translation defect or backend semantics; the comparison does not identify it. "query_panes" in LibTmux::Server throws this for require or expert queries, while auto reports fallback through its optional observer.

Spawn exception 12 members

The executable could not start; dispatch is distinguished from command failure.

StaleReference exception 12 members

A captured generation or contextual target no longer identifies the same resource.

Timeout exception 12 members

Execution exceeded its deadline; effects may already have occurred.

Transport exception In LibTmux::X 12 members

Process supervision or result framing failed.

Unloaded exception 12 members

A required field or relation is not available in captured data.

Unsupported exception 12 members

A daemon or execution capability is unavailable.

UnsupportedValue exception 12 members

A local value has no supported portable wire representation.

Errors — Server 1 type
NoServer exception 12 members

The selected server cannot be reached.

Constants and enums 1 type
CommandResult class 6 members

Completed or partial subprocess outcome

Async 3 types
Async module

Optional Future-based libtmux execution

Server class In LibTmux::Async 43 members

Optional Future facade over the core protocol

Transport class In LibTmux::Async 3 members

Bounded asynchronous process execution

Other 2 types
LibTmux module

Explicit tmux commands and captured graph queries

Entity class 5 members

Read-only handle retaining a captured graph

By module 8 modules

Esc

Type to search.

Reference previewOpen reference