Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

control.ControlMode.attach

Rust

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.

Cancel safety

Nothing is left held: a dropped attach kills and reaps the tmux client it started.

In other ports Attach a client to a session

0 declared, 0 inherited

Esc

Type to search.