On this page
tmux.Session.Attach
- Module
- tmux
- Declared in
- Session
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server_attach.go
- Attach ( ctx : context.Context , options : AttachSessionOptions ) error
-
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
CommandErrorfor a completed nonzero exit. Cancellation does not prove attachment or detachment did not occur.
0 declared, 0 inherited