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.
libtmux/libtmux-dotnet@aff7a75ace43 Server 4 types
Represents an immutable server handle and snapshot.
Identifies one tmux daemon generation.
Reads one isolated, single-session psmux namespace.
Owns a server and stops it when disposed.
Session 5 types
Represents an immutable session handle and snapshot.
An immutable observation of the sole psmux session.
Owns a session and stops it when disposed.
Owns a window and stops it when disposed.
Represents a generation-independent tmux session identifier.
Window 5 types
Represents an immutable window handle and snapshot.
Defines relative window placement.
An immutable observation of one psmux window.
Names which way a window's panes rotate.
Represents a generation-independent tmux window identifier.
Pane 7 types
Represents an immutable pane handle and snapshot.
Defines pane placement directions.
Represents a generation-independent tmux pane identifier.
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.
What a pane printed since a position, and where this read finished.
Names how a wait on a pane's rendered output ended.
Client 2 types
Identifies a client and resolves what it is looking at.
What one client is looking at.
Hooks 3 types
One command a hook runs, and where it sits in the order.
One hook and every command it runs.
The hooks of one server, session, window, or pane.
Options 5 types
Defines tmux option scopes.
A tmux option and the .NET type its value reads as.
What tmux reported for an option.
One option value as tmux reported it.
One option, with its array index when tmux gave it one.
Keys and bindings 1 type
The key bindings of one server.
Buffers 2 types
The paste buffers of one server.
One tmux paste buffer.
Layout and geometry 1 type
Defines pane resize directions.
Environment 2 types
One variable in a tmux environment.
The environment tmux gives to the processes it spawns.
Versions 1 type
Represents one lossless parsed tmux version.
Commands 4 types
One tmux command and the arguments it carries.
Says whether a failed command reached tmux, which is what decides if retrying is safe.
One tmux invocation, as a TmuxInterceptor sees it.
Waits for tmux to reach a state instead of sleeping.
Control mode 3 types
Subscribes a control client to a format changing.
A live tmux control client.
Narrows a control client's event stream to some panes, and ends it cleanly.
Queries 10 types
A tmux filter expression passed through without translation.
Parses the one legacy lookup spelling this port still carries.
One translated query predicate and its wire schema.
Translates, compiles, and applies declarative query predicates.
Names whether a captured query relation has one child or a collection.
Names the tmux object a field or quantifier reads.
Controls predicate evaluation inside tmux.
An immutable query plan; inspecting it never reads tmux.
Bounds one JSON document so parsing cannot be weaponised.
Serializes query documents in their declared wire schema version.
Queries — Fields 2 types
Discovers the closed query vocabulary and its built-in entity bindings.
Describes one field accepted by the current portable query schema.
Snapshots 8 types
Holds the children a snapshot captured for one relation.
Holds the one child a snapshot captured for a relation, if it read it.
One state of a mirrored server.
A live copy of one tmux server's sessions, windows, panes and clients, rebuilt whenever tmux announces a change.
Places one window at one index inside one session.
Names how far down the tmux hierarchy a snapshot captured.
Describes the interval and scope of one successful hierarchy acquisition.
Identifies one window linked into one session.
Requests 31 types
A request that becomes one tmux command against a target.
Describes one bind-key invocation.
Names how a chooser orders its rows.
Describes one choose-tree invocation.
What a command prompt is asking for.
Describes one command-prompt invocation.
Describes one confirm-before invocation.
Describes one copy-mode invocation.
Describes one display-menu invocation.
Describes one display-message invocation.
Names when a popup closes on its own.
Describes one display-popup invocation.
Describes one show-options invocation for a single option.
Describes one show-options invocation for every option in a scope.
Describes one hook to read, run, or unset.
Describes one if-shell invocation.
Describes one list-buffers invocation.
Describes one show-hooks invocation.
Describes one paste-buffer invocation.
Describes one respawn-window or respawn-pane invocation.
Describes one run-shell invocation.
Names a layout change that needs no layout string.
Describes one select-layout invocation.
Describes keys and an optional following Enter for a pane.
Describes one set-hook invocation.
Describes setting several entries of one hook.
Describes one set-option invocation.
Describes one unbind-key invocation.
Describes one set-option -u invocation.
What to do with a wait-for channel.
Describes one wait-for invocation.
Requests — Server 1 type
Describes one server-access invocation.
Requests — Session 2 types
Describes one attach-session invocation.
Describes one new-session invocation.
Requests — Window 6 types
Describes one find-window invocation.
Describes one link-window invocation.
Describes one move-window invocation.
Describes one new-window invocation.
Names how a window is resized against its clients.
Describes one resize-window invocation.
Requests — Pane 13 types
Names one end of a capture range.
Describes one capture-pane invocation.
Describes one new-pane invocation.
Describes a shell command to run in a pane and wait for.
Describes rendered output to wait for in a pane.
Describes one pipe-pane invocation.
Describes one resize-pane invocation.
Names which pane a selection moves to.
Describes one select-pane invocation.
Describes one split-window invocation.
Names which neighbouring pane a swap uses.
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.
Provides the base exception for remote tmux failures.
Reports a failure to clean up a canceled tmux client.
Reports a command-policy failure.
Reports a missing tmux executable.
Reports a missing tmux object.
Reports cancellation after a tmux client started.
Thrown when tmux refuses an option name or value.
Reports an answer from tmux this library could not read.
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
Thrown when a window operation is refused before tmux sees it.
Errors — Pane 1 type
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.
Bytes a pane wrote.
A notification this library does not parse further.
Reports notifications discarded because the bounded event buffer was full.
The control client ended.
The options of one server, session, window, or pane.
Chooses the psmux pane text that can be captured safely.
Configures the bounded psmux query preview.
What show-messages should list.
Defines the tmux client color mode.
Contains the inspectable result of one raw tmux command.
Ordered, read-only matches and the complete observation that produced them.
Names the scalar value types accepted by the portable query vocabulary.
Constants and enums — Server 1 type
Configures a tmux server connection without mutating process-wide state.
Constants and enums — Session 1 type
A created session and the initial child identities reported by its creation command.
Constants and enums — Window 1 type
A created window and the initial pane identity reported by its creation command.
Constants and enums — Pane 6 types
The pane a stream was watching left its window's arrangement.
tmux stopped sending a pane's output to this client.
tmux resumed sending a pane's output to this client.
Describes how a command run in a pane ended.
Describes how a wait on a pane's rendered output ended.
Names whether a pane accepts input.
Testing utilities 9 types
A server, session, window, and pane a test owns together.
Creates a throwaway server for a test and stops it afterwards.
Owns a throwaway session and any private server created with it.
Owns a throwaway window and any private session and server created with it.
The directory and variables a test's tmux runs with.
Makes names no other test is using.
A tmux server a test owns, and the environment it runs in.
Makes the tmux objects a test needs, each owning its own cleanup.
How a test's tmux is reached and how long it is waited on.
Other 6 types
Commands tmux runs together, in one process.
Runs a request on its own, as a chain of one command.
Reports package identity and supported tmux range.
Names the diagnostic sources this library publishes.
One line of a tmux menu.
An open wait on a tmux wait-for channel.
By module 7 modules
-
LibTmux 153
- Attach
Session Request - Bind
Key Request - Captured
Relation - Captured
Value - Capture
Pane Request - Choose
Tree Request - Client
- Client
Attachment - Command
Prompt Request - Confirm
Before Request - Control
Mode Command Exception - Control
Mode Subscriptions - Copy
Mode Request - Display
Menu Request - Display
Message Request - Display
Popup Request - Find
Window Request - Get
Option Request - Get
Options Request - Hook
Request - If
Shell Request - Incomplete
Snapshot Exception - Inconsistent
Snapshot Exception - Lib
Tmux Exception - Lib
Tmux Info - Link
Window Request - List
Buffers Request - List
Hooks Request - Move
Pane Request - Move
Window Request - New
Pane Request - New
Session Request - New
Window Request - Owned
Server Scope - Owned
Session Scope - Owned
Window Scope - Pane
- Pane
Observation - Pane
Output Since - Pane
Run Request - Pane
Run Result - Pane
Wait Request - Pane
Wait Result - Paste
Buffer Request - Pipe
Pane Request - Psmux
Capture Options - Psmux
Connection Options - Psmux
Pane - Psmux
Server - Psmux
Session - Psmux
Window - Resize
Pane Request - Resize
Window Request - Respawn
Request - Run
Shell Request - Select
Layout Request - Select
Pane Request - Send
Keys Request - Server
- Server
Access Request - Server
Connection Options - Server
Mirror - Server
Mirror View - Session
- Session
Creation Result - Session
Window Edge - Set
Hook Request - Set
Hooks Request - Set
Option Request - Snapshot
Metadata - Split
Pane Request - Stale
Server Generation Exception - Swap
Pane Request - Tmux
Buffer - Tmux
Buffers - Tmux
Chain - Tmux
Chaining - Tmux
Cleanup Exception - Tmux
Command - Tmux
Command Exception - Tmux
Command Not Found Exception - Tmux
Command Result - Tmux
Environment - Tmux
Environment Entry - Tmux
Events Dropped Event - Tmux
Exit Event - Tmux
Hook - Tmux
Hook Entry - Tmux
Hooks - Tmux
Invocation - Tmux
Keys - Tmux
Menu Item - Tmux
Notification Event - Tmux
Object Not Found Exception - Tmux
Operation Canceled Exception - Tmux
Option - Tmux
Option Exception - Tmux
Option Key - Tmux
Options - Tmux
Option Value - Tmux
Output Event - Tmux
Pane Continued Event - Tmux
Pane Exception - Tmux
Pane Gone Event - Tmux
Pane Paused Event - Tmux
Protocol Exception - Tmux
Session Exists Exception - Tmux
Transport Exception - Tmux
Unsupported On Release Exception - Tmux
Version Too Low Exception - Tmux
Wait - Tmux
Wait Channel - Tmux
Wait Timeout Exception - Tmux
Window Exception - Unbind
Key Request - Unsafe
Tmux Filter - Unset
Option Request - Unsupported
Query Expression Exception - Wait
For Request - Window
- Window
Creation Result - Choose
Tree Sort - Option
Scope - Pane
Direction - Pane
Input Mode - Pane
Select Direction - Pane
Swap Direction - Pane
Wait Outcome - Popup
Close Mode - Prompt
Type - Resize
Direction - Select
Layout Mode - Show
Messages Mode - Snapshot
Depth - Tmux
Color Mode - Tmux
Dispatch State - Tmux
Option State - Tmux
Wait Mode - Window
Direction - Window
Resize Mode - Window
Rotation Direction - IControl
Mode Session - ITmux
Request - Capture
Pane Position - Pane
Id - Server
Generation - Session
Id - Tmux
Version - Window
Entity Key - Window
Id - Pane
Output Position - Tmux
Diagnostics - Tmux
Event
- Attach
-
LibTmux.Mcp 26
- Action
Result - Bounded
Text - Capture
Result - Channel
Wait Result - Environment
Entry - Hook
Entry - Key
Step - Lib
Tmux Mcp - Matched
Line - Mcp
Server Composition - Option
Entry - Pane
Info - Pane
Input Result - Pane
Match - Pane
Snapshot - Run
Result - Search
Result - Server
Instructions - Server
Policy - Session
Info - Tail
Result - Tmux
Connection Accessor - Tmux
Server Info - Wait
Result - Window
Info - Wait
Outcome
- Action
-
LibTmux.Workspace 20
- Workspace
Action - Workspace
Action Outcome - Workspace
Builder - Workspace
Build Exception - Workspace
Command - Workspace
File - Workspace
Format Exception - Workspace
Host Command - Workspace
Host Result - Workspace
Operation Canceled Exception - Workspace
Pane - Workspace
Plan - Workspace
Plan Options - Workspace
Result - Workspace
Window - Workspace
Action Kind - Workspace
Action State - Workspace
Existing Session - Workspace
Readiness - Workspace
Server Startup
- Workspace
-
LibTmux.Query.Json 2