libtmux Reference MCP Search
On this page

tmux.Session.Attach

View as Markdown

Module
tmux
Declared in
Session
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_attach.go
Attach ( ctx : context.Context , options : AttachSessionOptions ) error
method [source]
method [source]
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.

0 declared, 0 inherited

Esc

Type to search.