tmux.Server.AttachSession
- Module
- tmux
- Declared in
- Server
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server_attach.go
- Other languages
- Python Ruby Lua 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.Alone among this package's operations, it leaves tmux's own locale detection alone, because what tmux writes here reaches the caller's terminal rather than this package. See
Session.Attachfor the session-scoped form.In other ports Attach a client to a session
- Python
libtmux.Session.attach - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- 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