Core Library0.xAPI Reference

Choose documentation 1

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

API reference

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

Server 4 types
Server class 46 members
Endpoint class 10 members

Immutable connection settings. Construction performs no tmux operation.

Incarnation class 7 members

Value-only daemon identity. Retaining it keeps no process or executor alive.

Observation class 3 members

One immutable pairing of daemon identity and capability evidence.

Session 5 types, 1 function or constant
Session class 22 members

Captured session with local window-link and group relationships.

SessionGroup class 14 members

Captured session group whose members are resolved within this graph.

SessionGroupSelection class 23 members

Replayable typed sessiongroup membership with local filtering.

SessionRef class 16 members

Value-only command target for a session in one daemon incarnation.

SessionSelection class 23 members

Replayable typed session membership with local filtering.

SessionId type alias

A session identifier's spelling; existence and daemon ownership are separate.

Window 6 types, 1 function or constant
Window class 24 members

Captured physical window; session-relative indices belong to WindowLink.

WindowLink class 20 members

One captured session/index association with an expected physical window.

WindowLinkRef class 10 members

A session/index target with an expected window. Renumbering checks are not atomic.

WindowLinkSelection class 23 members

Replayable typed window-link membership with local filtering.

WindowRef class 18 members

Value-only command target for a physical window, independent of its links.

WindowSelection class 23 members

Replayable typed window membership with local filtering.

WindowId type alias

A physical window identifier. An index in a session is a different value.

Pane 3 types, 1 function or constant
Pane class 45 members

Captured pane fields and its local physical-window relationship.

PaneRef class 38 members

Value-only command target for a physical pane in one daemon incarnation.

PaneSelection class 23 members

Replayable typed pane membership with local filtering.

PaneId type alias

A pane identifier scoped to a captured daemon incarnation.

Client 7 types
Client module In LibTmux 3 members
Client class In LibTmux::Model 24 members

Captured attached-client fields; commands use its separate reference.

Attachment class 14 members
ClientTarget class 26 members

A value-only client target. No subprocess or connection is retained.

MenuItem class 5 members

A menu entry. Empty labels are separators; labels retain tmux display styles.

ClientRef class 24 members

A captured client identity with explicit inspection and inherited client commands.

ClientSelection class 23 members

Replayable typed client membership with local filtering.

Hooks 1 type
Hooks class 6 members

Named hook command arrays. Reading a hook never executes its command source.

Options 2 types
OptionSpec class 12 members

One source-qualified option type, scope and operand range.

OptionValue class 4 members

One observed option value. The source schema determines its native scalar type.

Keys and bindings 2 types
KeyBinding class 6 members

Captured binding metadata. Legacy listings leave note-state Unloaded.

KeyBindings class 5 members

Server key tables. Invocation keeps stored command arguments distinct.

Buffers 4 types
BufferInfo class 4 members

Buffer metadata is separate from explicitly acquired binary contents.

Buffers class 7 members

Server-scoped paste buffers with binary load and save operations.

Buffer class 14 members

Captured buffer metadata; it does not retain or implicitly load buffer content.

BufferSelection class 23 members

Replayable typed buffer membership with local filtering.

Layout and geometry 2 types, 1 function or constant
Layout module In LibTmux 3 members
Layout class In LibTmux::Layout 12 members

Decoded layout plus exact source bytes, including unsupported future versions.

decode-layout function

Decode a declared dialect. Unknown versions retain bytes without a guessed tree.

Environment 2 types
Environment class 6 members

Session or global environment, including hidden and removed entries.

EnvironmentValue class 6 members

Environment absence and an explicit removed marker are different states.

Terminal capabilities 1 type
Capabilities class 21 members
Versions 5 types, 3 functions and constants
Catalogue module 7 members

Packaged, source-qualified fields, relationships, options and release profiles.

CatalogueData class 14 members

Typed schema lookup used by acquisition, local criteria and documentation.

SupportPolicy class 5 members

Ordered release profiles are the sole source of the floor and CI endpoints.

TmuxVersion class 7 members

Parsed release spelling; an exact release can still lack a support profile.

SupportState enum 3 members

Capability evidence never treats an unprobed feature as supported.

catalogue function

Return the validated packaged catalogue; no tmux command is executed.

Preserve the raw string and reject vendor/development suffixes as unqualified.

Return the immutable release policy without reading configuration or contacting tmux.

Commands 11 types
Batch module In LibTmux 5 members
Batch class In LibTmux::Batch 8 members

A finite replayable sequence of explicit commands, without transaction semantics.

Evidence class 4 members

Caller-supplied evidence for one named operation, not a command acknowledgement.

Operation class 5 members

One immutable command and an explicit completion contract.

Report class 10 members

Captured per-operation results. No runtime, control owner or caller task is retained.

CommandTemplate class 2 members

Explicit tmux command-template syntax, including percent substitutions.

Command module In LibTmux 1 member
Invocation class 3 members

One copied tmux command with distinct argv and command-language encodings.

Transport module 2 members
Cancellation class 4 members

One-shot cancellation shared by explicitly selected operations.

Outcome enum 5 members

What the caller knows about an operation's effects.

Control mode 6 types
Control module 7 members
Connection class 34 members
Decoder class 7 members

Incremental LF framing with exact response guards and bounded retained data.

PaneOutput class 4 members

Pane output is terminal bytes, not an independently decodable UTF-8 string.

Response class 6 members

A matched command guard pair acknowledges execution, not asynchronous effects.

UnframedOutput class 1 member

Some queued jobs print after their end guard; preserve that unframed line.

Formats 4 types
Format module 3 members
DecodedRow class 9 members

Exact captured field bytes and scalar values. Text conversion is explicit.

FrameDecoder class 8 members

Incremental LF framing over bytes with terminal failure and explicit limits.

Projection class 11 members

Ordered registered fields with an explicit acquisition context and codec.

Queries 7 types
Query module 3 members
Filter class 11 members

A schema-validated local matcher with copied, immutable criteria and AST.

Limits class 4 members

Immutable resource limits applied before recursive validation or JSON parsing.

Plan module In LibTmux::Query 1 member
Plan class In LibTmux::Query::Plan 18 members

Pure, inspectable source restrictions plus the original local filter.

Selection module In LibTmux 1 member
Selection trait In LibTmux::Selection 23 members

Eager captured membership; transformations perform no acquisition or commands.

Queries — Expressions 1 type
LayoutNode class 15 members

An immutable observed layout cell; floating leaves need not tile their parent.

Snapshots 3 types
Snapshot class 17 members

Captured records and indexed relations; it retains no transport or live owner.

View class 12 members

A local view of one captured record. Accessors and relations never perform I/O.

ValueState enum 5 members

Availability states preserve absence without conflating false, zero or empty text.

Errors 10 types
Exceptions module 9 members

Typed acquisition, decoding, query, ownership and command failures.

LibTmux exception In X 1 member

Base for explicit library failures; operational failures are never absence.

Cardinality exception 2 members

Exact or optional cardinality was violated.

Command exception In X::LibTmux 10 members

A child command failed; outcome states whether an effect may have occurred.

Decode exception 4 members

Captured bytes violate the declared projection or field codec.

InconsistentSnapshot exception 2 members

Contextual rows disagree about one physical entity in a capture interval.

InvalidFilter exception 1 member

Criteria are invalid before any collection traversal occurs.

MissingData exception 2 members

A requested local field or relation was not acquired in this observation.

StaleReference exception

A target belongs to a daemon incarnation which is no longer current.

Unsupported exception 3 members

A capability is unavailable or not established for the connected daemon.

Constants and enums 5 types
OperationResult class 14 members

One position's outcome, preserving its acknowledgement and original exception.

Options class 8 members

Typed native options. Reads and writes are explicit daemon operations.

Event class 3 members

One notification, retaining its original bytes without the record terminator.

UnknownEvent class 1 member

An unrecognized notification remains inspectable without interpreting its body.

Result class 9 members

Captured child output. Complete means process completion, not application effects.

Other 5 types, 2 functions and constants
LibTmux module 18 members
Configuration module 9 members
Engine module 3 members
Model module 21 members
Types module 8 members
Count type alias

A nonnegative count or dimension. Bool is deliberately not a number here.

Positive type alias

A positive dimension or resource limit.

Esc

Type to search.

Reference previewOpen reference