libtmux Reference MCP Search
On this page

control.ControlMode.attach

View as Markdown

Module
control
Declared in
ControlMode
Package
libtmux
Source
crates/libtmux/src/control.rs
Other languages
Python TypeScript GoJava.NETC++ Swift
attach ( server : &Server , session : &SessionId ) Result<Self, Error>
method [source]
method [source]
attach

Attach to a session in control mode.

When this returns, tmux has the client attached: anything that changes the server afterwards is reported. Returning as soon as the process started would look the same and lose every notification racing the attach, which is the hardest kind of bug to see.

Errors

Returns an error when tmux cannot be started, does not give the crate the pipes it asked for, exits before attaching, or does not finish its opening block before the server deadline.

In other languages Attach a client to a session

0 declared, 0 inherited

Esc

Type to search.