Server.EnterControlModeAsync
Starts a tmux control client and keeps it running.
Source and package
- Qualified name
-
LibTmux .Server. Enter Control Mode Async - Namespace
- LibTmux
- Declared in
Server- Package
- LibTmux
- Source
- src/LibTmux/Server.ControlMode.cs
- Task<IControl
Mode > EnterControlModeAsync( string? target = null, CancellationSession Token cancellationToken = default ) -
Description
This is the streaming counterpart to the one-shot methods, not a mode they can be switched into. The one-shot methods send their commands over a control client of their own, which the library keeps on each server and leaves out of every listing; it reports nothing and is not the client returned here. Hold the returned session and read
Eventsto see what tmux does.- Parameters
-
-
target(string?) – The session to attach to, ornullto let tmux pick the most recently used one.Default
null -
cancellationToken(CancellationToken ) – Cancels starting the client.Default
default
-
- Returns
-
A session that reports what tmux does until it is disposed.
- Errors
-
-
Invalid
Operation – The handle has no connection.Exception -
Stale
Server – The endpoint changed servers while the control client was attaching.Generation Exception -
Tmux
Version – The server is older than tmux 3.7, which a control client can crash while it attaches. Nothing is attached.Too Low Exception
-
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.Server.EnterControlModeAsync.
tmux command
task materialThe tmux commands behind EnterControlModeAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
Guides
task materialPages that discuss EnterControlModeAsync.