Session.AttachAsync
Attaches a client to this session.
Source and package
- Qualified name
-
LibTmux .Session. Attach Async - Namespace
- LibTmux
- Declared in
Session- Package
- LibTmux
- Source
- src/LibTmux/Session.Lifecycle.cs
- async Task<Session> AttachAsync( Attach
Session ? request = null, CancellationRequest Token cancellationToken = default ) -
Description
Attaching inherits the caller's terminal on stdin and waits for detach. A positive acknowledgement is required within five seconds, or a shorter
CommandTimeout. CommandTimeout still bounds the whole attachment; null permits an indefinite interactive lifetime after acknowledgement. Cancellation stops only the owned client.Targetremains a raw target override; leave it unset to attach this session by its identifier.- Parameters
-
-
request(AttachSession ?) – Attachment options.Request Default
null -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
-
- Returns
-
A refreshed handle for this session.
Recorded calls
source callsThe C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Session.AttachAsync.
tmux command
task materialThe tmux commands behind AttachAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.