Core Library0.xAPI reference

Choose documentation 3

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.

MoreLess about this notice

API reference

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

175 types, 399 methods, 653 fields and 81 constants.

source libtmux/libtmux-dotnet@aff7a75ace43
Server 4 types
Server class 77 members

Represents an immutable server handle and snapshot.

ServerGeneration struct 4 members

Identifies one tmux daemon generation.

PsmuxServer class 7 members

Reads one isolated, single-session psmux namespace.

OwnedServerScope class 2 members

Owns a server and stops it when disposed.

Session 5 types
Session class 40 members

Represents an immutable session handle and snapshot.

PsmuxSession class 6 members

An immutable observation of the sole psmux session.

OwnedSessionScope class 2 members

Owns a session and stops it when disposed.

OwnedWindowScope class 2 members

Owns a window and stops it when disposed.

SessionId struct 6 members

Represents a generation-independent tmux session identifier.

Window 5 types
Window class 54 members

Represents an immutable window handle and snapshot.

WindowDirection enum 2 members

Defines relative window placement.

PsmuxWindow class 8 members

An immutable observation of one psmux window.

Names which way a window's panes rotate.

WindowId struct 6 members

Represents a generation-independent tmux window identifier.

Pane 7 types
Pane class 74 members

Represents an immutable pane handle and snapshot.

PaneDirection enum 4 members

Defines pane placement directions.

PaneId struct 6 members

Represents a generation-independent tmux pane identifier.

PsmuxPane class 9 members

An immutable observation of one psmux pane.

Where a read of a pane's output finished, so the next read returns only what is new.

PaneOutputSince class 3 members

What a pane printed since a position, and where this read finished.

PaneWaitOutcome enum 7 members

Names how a wait on a pane's rendered output ended.

Client 2 types
Client class 15 members

Identifies a client and resolves what it is looking at.

ClientAttachment class 3 members

What one client is looking at.

Hooks 3 types
TmuxHookEntry class 3 members

One command a hook runs, and where it sits in the order.

TmuxHook class 3 members

One hook and every command it runs.

TmuxHooks class 6 members

The hooks of one server, session, window, or pane.

Options 5 types
OptionScope enum 4 members

Defines tmux option scopes.

TmuxOptionKey class 11 members

A tmux option and the .NET type its value reads as.

TmuxOptionState enum 4 members

What tmux reported for an option.

TmuxOptionValue class 5 members

One option value as tmux reported it.

TmuxOption class 5 members

One option, with its array index when tmux gave it one.

Keys and bindings 1 type
TmuxKeys class 3 members

The key bindings of one server.

Buffers 2 types
TmuxBuffers class 7 members

The paste buffers of one server.

TmuxBuffer class 4 members

One tmux paste buffer.

Layout and geometry 1 type
ResizeDirection enum 4 members

Defines pane resize directions.

Environment 2 types
TmuxEnvironmentEntry class 4 members

One variable in a tmux environment.

TmuxEnvironment class 5 members

The environment tmux gives to the processes it spawns.

Versions 1 type
TmuxVersion struct 22 members

Represents one lossless parsed tmux version.

Commands 4 types
TmuxCommand class 9 members

One tmux command and the arguments it carries.

TmuxDispatchState enum 3 members

Says whether a failed command reached tmux, which is what decides if retrying is safe.

TmuxInvocation class 2 members

One tmux invocation, as a TmuxInterceptor sees it.

TmuxWait class 1 member

Waits for tmux to reach a state instead of sleeping.

Control mode 3 types

Subscribes a control client to a format changing.

IControlModeSession interface 3 members

A live tmux control client.

PaneObservation class 1 member

Narrows a control client's event stream to some panes, and ends it cleanly.

Queries 10 types
UnsafeTmuxFilter class 1 member

A tmux filter expression passed through without translation.

QueryEdgeParser class 1 member

Parses the one legacy lookup spelling this port still carries.

QueryDocument class 4 members

One translated query predicate and its wire schema.

QueryExtensions class 4 members

Translates, compiles, and applies declarative query predicates.

Names whether a captured query relation has one child or a collection.

QueryTarget enum 4 members

Names the tmux object a field or quantifier reads.

QueryPushdown enum 3 members

Controls predicate evaluation inside tmux.

QueryPlan class 9 members

An immutable query plan; inspecting it never reads tmux.

QueryJsonLimits class 6 members

Bounds one JSON document so parsing cannot be weaponised.

QueryJson class 2 members

Serializes query documents in their declared wire schema version.

Queries — Fields 2 types
QueryFieldCatalog class 1 member

Discovers the closed query vocabulary and its built-in entity bindings.

QueryFieldDescriptor class 10 members

Describes one field accepted by the current portable query schema.

Snapshots 8 types
CapturedRelation class 6 members

Holds the children a snapshot captured for one relation.

CapturedValue class 6 members

Holds the one child a snapshot captured for a relation, if it read it.

ServerMirrorView class 3 members

One state of a mirrored server.

ServerMirror class 8 members

A live copy of one tmux server's sessions, windows, panes and clients, rebuilt whenever tmux announces a change.

SessionWindowEdge class 5 members

Places one window at one index inside one session.

SnapshotDepth enum 4 members

Names how far down the tmux hierarchy a snapshot captured.

SnapshotMetadata class 5 members

Describes the interval and scope of one successful hierarchy acquisition.

WindowEntityKey struct 4 members

Identifies one window linked into one session.

Requests 31 types
ITmuxRequest interface 1 member

A request that becomes one tmux command against a target.

BindKeyRequest class 7 members

Describes one bind-key invocation.

ChooseTreeSort enum 4 members

Names how a chooser orders its rows.

ChooseTreeRequest class 8 members

Describes one choose-tree invocation.

PromptType enum 4 members

What a command prompt is asking for.

CommandPromptRequest class 15 members

Describes one command-prompt invocation.

ConfirmBeforeRequest class 7 members

Describes one confirm-before invocation.

CopyModeRequest class 7 members

Describes one copy-mode invocation.

DisplayMenuRequest class 15 members

Describes one display-menu invocation.

DisplayMessageRequest class 11 members

Describes one display-message invocation.

PopupCloseMode enum 2 members

Names when a popup closes on its own.

DisplayPopupRequest class 18 members

Describes one display-popup invocation.

GetOptionRequest class 8 members

Describes one show-options invocation for a single option.

GetOptionsRequest class 6 members

Describes one show-options invocation for every option in a scope.

HookRequest class 4 members

Describes one hook to read, run, or unset.

IfShellRequest class 7 members

Describes one if-shell invocation.

ListBuffersRequest class 3 members

Describes one list-buffers invocation.

ListHooksRequest class 3 members

Describes one show-hooks invocation.

PasteBufferRequest class 7 members

Describes one paste-buffer invocation.

RespawnRequest class 5 members

Describes one respawn-window or respawn-pane invocation.

RunShellRequest class 10 members

Describes one run-shell invocation.

SelectLayoutMode enum 3 members

Names a layout change that needs no layout string.

SelectLayoutRequest class 3 members

Describes one select-layout invocation.

SendKeysRequest class 13 members

Describes keys and an optional following Enter for a pane.

SetHookRequest class 9 members

Describes one set-hook invocation.

SetHooksRequest class 6 members

Describes setting several entries of one hook.

SetOptionRequest class 10 members

Describes one set-option invocation.

UnbindKeyRequest class 5 members

Describes one unbind-key invocation.

UnsetOptionRequest class 7 members

Describes one set-option -u invocation.

TmuxWaitMode enum 4 members

What to do with a wait-for channel.

WaitForRequest class 4 members

Describes one wait-for invocation.

Requests — Server 1 type
ServerAccessRequest class 6 members

Describes one server-access invocation.

Requests — Session 2 types
AttachSessionRequest class 6 members

Describes one attach-session invocation.

NewSessionRequest class 14 members

Describes one new-session invocation.

Requests — Window 6 types
FindWindowRequest class 8 members

Describes one find-window invocation.

LinkWindowRequest class 7 members

Describes one link-window invocation.

MoveWindowRequest class 7 members

Describes one move-window invocation.

NewWindowRequest class 11 members

Describes one new-window invocation.

WindowResizeMode enum 2 members

Names how a window is resized against its clients.

ResizeWindowRequest class 6 members

Describes one resize-window invocation.

Requests — Pane 13 types
CapturePanePosition struct 4 members

Names one end of a capture range.

CapturePaneRequest class 15 members

Describes one capture-pane invocation.

MovePaneRequest class 8 members

Describes one move-pane or join-pane invocation.

NewPaneRequest class 17 members

Describes one new-pane invocation.

PaneRunRequest class 7 members

Describes a shell command to run in a pane and wait for.

PaneWaitRequest class 8 members

Describes rendered output to wait for in a pane.

PipePaneRequest class 5 members

Describes one pipe-pane invocation.

ResizePaneRequest class 8 members

Describes one resize-pane invocation.

PaneSelectDirection enum 5 members

Names which pane a selection moves to.

SelectPaneRequest class 6 members

Describes one select-pane invocation.

SplitPaneRequest class 18 members

Describes one split-window invocation.

PaneSwapDirection enum 2 members

Names which neighbouring pane a swap uses.

SwapPaneRequest class 5 members

Describes one swap-pane invocation.

Errors 16 types

Reports a command rejected by a live tmux control client.

Thrown when a snapshot never captured the requested relation.

Reports contradictory topology in completed snapshot reads.

LibTmuxException class 2 members

Provides the base exception for remote tmux failures.

TmuxCleanupException class 4 members

Reports a failure to clean up a canceled tmux client.

TmuxCommandException class 2 members

Reports a command-policy failure.

Reports a missing tmux executable.

Reports a missing tmux object.

Reports cancellation after a tmux client started.

TmuxOptionException class 2 members

Thrown when tmux refuses an option name or value.

TmuxProtocolException class 2 members

Reports an answer from tmux this library could not read.

TmuxTransportException class 2 members

Reports a process-transport failure.

Reports a command or feature that is unsafe or unavailable on the running tmux release.

Reports an unsupported tmux version.

Reports an expired bounded wait.

Thrown when an expression cannot be translated to a query.

Errors — Server 1 type

Reports a stale server generation.

Errors — Session 1 type

Thrown when a session name is already taken.

Errors — Window 1 type
TmuxWindowException class 2 members

Thrown when a window operation is refused before tmux sees it.

Errors — Pane 1 type
TmuxPaneException class 2 members

Thrown when a pane operation is refused before tmux sees it.

Constants and enums 13 types

One thing a tmux control client reported without being asked.

TmuxOutputEvent class 2 members

Bytes a pane wrote.

TmuxNotificationEvent class 2 members

A notification this library does not parse further.

TmuxEventsDroppedEvent class 3 members

Reports notifications discarded because the bounded event buffer was full.

TmuxExitEvent class 1 member

The control client ended.

TmuxOptions class 5 members

The options of one server, session, window, or pane.

PsmuxCaptureOptions class 5 members

Chooses the psmux pane text that can be captured safely.

PsmuxConnectionOptions class 6 members

Configures the bounded psmux query preview.

ShowMessagesMode enum 3 members

What show-messages should list.

TmuxColorMode enum 3 members

Defines the tmux client color mode.

TmuxCommandResult class 9 members

Contains the inspectable result of one raw tmux command.

QueryResult class 3 members

Ordered, read-only matches and the complete observation that produced them.

QueryValueKind enum 4 members

Names the scalar value types accepted by the portable query vocabulary.

Constants and enums — Server 1 type
ServerConnectionOptions class 15 members

Configures a tmux server connection without mutating process-wide state.

Constants and enums — Session 1 type
SessionCreationResult class 4 members

A created session and the initial child identities reported by its creation command.

Constants and enums — Window 1 type
WindowCreationResult class 2 members

A created window and the initial pane identity reported by its creation command.

Constants and enums — Pane 6 types
TmuxPaneGoneEvent class 1 member

The pane a stream was watching left its window's arrangement.

TmuxPanePausedEvent class 1 member

tmux stopped sending a pane's output to this client.

TmuxPaneContinuedEvent class 1 member

tmux resumed sending a pane's output to this client.

PaneRunResult class 13 members

Describes how a command run in a pane ended.

PaneWaitResult class 14 members

Describes how a wait on a pane's rendered output ended.

PaneInputMode enum 2 members

Names whether a pane accepts input.

Testing utilities 9 types
TemporaryHierarchyScope class 5 members

A server, session, window, and pane a test owns together.

TemporaryServerScope class 2 members

Creates a throwaway server for a test and stops it afterwards.

TemporarySessionScope class 2 members

Owns a throwaway session and any private server created with it.

TemporaryWindowScope class 2 members

Owns a throwaway window and any private session and server created with it.

TestEnvironment class 5 members

The directory and variables a test's tmux runs with.

TmuxNameGenerator class 5 members

Makes names no other test is using.

TmuxTestContext class 3 members

A tmux server a test owns, and the environment it runs in.

TmuxTestFactory class 6 members

Makes the tmux objects a test needs, each owning its own cleanup.

TmuxTestOptions class 6 members

How a test's tmux is reached and how long it is waited on.

Other 6 types
TmuxChain class 3 members

Commands tmux runs together, in one process.

TmuxChaining class 4 members

Runs a request on its own, as a chain of one command.

LibTmuxInfo class 3 members

Reports package identity and supported tmux range.

Names the diagnostic sources this library publishes.

TmuxMenuItem class 4 members

One line of a tmux menu.

TmuxWaitChannel class 5 members

An open wait on a tmux wait-for channel.

By module 7 modules

Esc
Search in

Type to search.

Reference previewOpen reference