libtmux Reference MCP Search
On this page

LibTmux.IControlModeSession.SendAsync

View as Markdown

Module
LibTmux
Declared in
IControlModeSession
Package
LibTmux
Source
src/LibTmux/ControlMode/IControlModeSession.cs
SendAsync ( command : TmuxCommand , cancellationToken : CancellationToken ) Task<IReadOnlyList<string>>
method [source]
method [source]
SendAsync

Runs one command on this client and reads what it answered.

tmux answers commands in the order it received them, so this is safe to call concurrently: each caller gets its own answer rather than someone else's. Cancelling stops the wait, not the command; tmux has already been told.

Parameters
Returns

The lines tmux printed, empty when it printed nothing.

Raises

0 declared, 0 inherited

Esc

Type to search.