On this page
control.ControlMode.attach
- Module
- control
- Declared in
- ControlMode
- Package
- libtmux
- Source
- crates/libtmux/src/control.rs
- Other languages
- Python TypeScript GoJava.NETC++ Swift
-
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
- Python
libtmux.Session.attach - TypeScript no direct equivalent; the client is out of scope for this port
- Go
tmux.Server.AttachSession - Java
io.github.libtmux.control.ControlClient.ControlClient.attach - .NET
LibTmux.Server.AttachSessionAsync - C++
libtmux::Session::attach_command - Swift reached through `Server.connected(attachingTo:)`, which scopes a block rather than attaching a client
- Python
0 declared, 0 inherited