Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

IControlModeSession.SendAsync

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

Source and package
Qualified name
LibTmux.IControlModeSession.SendAsync
Namespace
LibTmux
Declared in
IControlModeSession
Package
LibTmux
Source
src/LibTmux/ControlMode/IControlModeSession.cs

Description

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. Foreground run-shell, its tmux command-name prefixes, and run are rejected before dispatch because their output is not framed as a command reply. Only direct background shell invocations are accepted. Use RunShellAsync() to read shell text where tmux returns it. A nonzero shell exit raises TmuxCommandException; Result carries its exit status.

Parameters
Returns

The lines tmux printed, empty when it printed nothing.

Errors

Recorded calls

source calls
No call edges in the C# model.

The 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.IControlModeSession.SendAsync.

Esc
Search in

Type to search.

Reference previewOpen reference