Architecture
A server handle selects a tmux server. Object IDs select sessions, windows, and panes within it. For the object hierarchy and stable IDs, start with Server, session, window, pane.
Calling operations¶
Session, window, and pane handles carry their ID and server context. Call an operation on the object you want to change. The examples below send input and kill that pane.
pane.sendLine("echo hi");pane.kill();Reading tmux fields¶
Object IDs become tmux targets (-t). Format variables (#{...}) provide
the state returned by tmux.
Typed field classes such as Pane_ and Session_ support the query layer.
Accessors use Optional<T> for fields that may be unavailable on the running
tmux version. Filtering and queries explains how to
select and query those fields.
Source layout¶
libtmux/src/main/java/io/github/libtmux/ holds the Server, Session,
Window, and Pane classes. Their options() and hooks() accessors
return Options and Hooks views scoped to the object.
Session_, Window_, and Pane_ are typed-field classes for the query layer.