API reference
Browse the Lua types and operations for working with tmux. Start with the core objects below, or search for a type or member.
Server 1 type
A handle to one running tmux server, reached through a connected runtime.
Session 1 type
A tmux session.
Window 2 types
A tmux window. Placement in a session belongs to its window links.
One placement of a window in a session: a window can be linked into several.
Client 2 types
A client attached to the server.
Hooks 2 types, 1 function or constant
Options 4 types, 2 functions and constants
Buffers 2 types
A paste buffer. Buffer contents are read and written through the Server.
Layout and geometry 1 function or constant
Environment 1 type
Terminal capabilities 2 types
Commands 1 type
Formats 7 types
Queries 7 types, 5 functions and constants
Queries — Fields 2 types
Queries — Expressions 1 function or constant
Snapshots 8 types
Requests 1 type
Errors 2 types
Constants and enums 37 types
Options for libtmux.Runtime:connect().
What every environment operation accepts; unset and remove take no more.
Running a hook reads only its handle's own scope.
What every option and hook operation accepts. Each operation's own class
adds the fields it reads; anything else fails with invalid_options.
Constants and enums — Session 1 type
Constants and enums — Window 4 types
Constants and enums — Pane 6 types
Constants and enums — Client 2 types
Other 9 types
Options and hooks, shared by sessions, windows and panes. Scopes are limited to the handle's own kind; global scopes belong to the Server.
A handle to one tmux object, bound to the snapshot generation it came from. Every handle kind can report its reference and refresh its snapshot record; the concrete classes below add what tmux allows for that kind.
By module 3 modules
-
libtmux 109
- Break
Pane Options - Buffer
- Buffer
Options - Buffer
Value - Capability
- Capability
Command - Capture
- Capture
Options - Clear
History Options - Client
- Client
Options - Client
Selector - Command
Batch Options - Command
Options - Command
Outcome - Command
Result - Configurable
- Connect
Options - Copy
Mode Options - Creation
- Creation
Options - Creation
Process Options - Entity
- Environment
Get Options - Environment
List Options - Environment
Options - Environment
Record - Environment
Set Options - Error
- Field
Criteria - Hook
Program - Hook
Record - Key
Options - Layout
Options - Link
Destination - Link
Options - Live
Query Options - Live
Query Plan - Live
Query Result - Move
Pane Options - Navigate
Window Options - New
Session Options - New
Window Options - Observation
- Observation
Coverage - Observation
Event - Observation
Options - Option
Array Input - Option
Descriptor - Option
Entry - Option
Record - Pane
- Pane
Options - Paste
Buffer Options - Query
Error - Query
Field - Query
Relation - Query
Schema - Reference
- Relation
Criteria - Request
- Resize
Pane Options - Resize
Window Options - Respawn
Options - Respawn
Window Options - Run
Hook Options - Runtime
- Runtime
Options - Selection
- Select
Pane Options - Server
- Session
- Setting
Get Options - Setting
List Options - Setting
Options - Setting
Set Options - Setting
Unset Options - Snapshot
- Snapshot
Buffer - Snapshot
Client - Snapshot
Options - Snapshot
Pane - Snapshot
Session - Snapshot
Window - Snapshot
Window Link - Split
Options - Swap
Link Options - Swap
Pane Options - Switch
Client Options - Text
Wait - Topology
Options - Unlink
Options - Wait
Text Options - Watch
- Watch
Options - Where
- Window
- Window
Link - query
- Compiled
Query - Hook
Name - Named
Layout - Null
- Option
Input - Option
Name - Predicate
- Query
Input - Query
Scalar - Where
Value
- Break