Session.Attach
Attach attaches the caller's terminal to this session's stable identifier and blocks until detach or context cancellation. It validates the receiver's stable SessionID, retains but never closes caller-supplied streams, and returns CommandError for a completed nonzero exit. Cancellation does not prove attachment or detachment did not occur. See Server.AttachSession for locale handling and terminal recovery after forced cancellation.
Source and package
- Qualified name
-
tmux.Session. Attach - Package
- tmux
- Declared in
Session- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server_attach.go
- func (s Session) Attach( ctx context
.Context , options AttachSession , ) errorOptions -
- Parameters
tmux command#
The tmux commands behind Attach.
tmux C API#
The C declarations in tmux that implement these commands.