On this page
tmux.Server.AttachSession
- Module
- tmux
- Declared in
- Server
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server_attach.go
- Other languages
- Python TypeScript RustJava.NETC++ Swift
- AttachSession ( ctx : context.Context , request : AttachSessionRequest ) error
-
AttachSession attaches the caller's terminal to a matching session and blocks until detach or context cancellation. Nil standard streams inherit the process streams; each stream must be a concrete terminal descriptor. The call retains caller-supplied files while attached and never owns or closes them. A completed nonzero exit returns
CommandError; cancellation can end waiting but does not prove that attachment or detachment did not occur.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
- Rust
control.ControlMode.attach - 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