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

Pane.RunAsync

Runs a shell command in the pane and waits for its exit status.

Source and package
Qualified name
LibTmux.Pane.RunAsync
Namespace
LibTmux
Declared in
Pane
Package
LibTmux
Source
src/LibTmux/Pane.Running.cs
Parameters
Returns

The exit status and what the command printed.

Errors
  • ArgumentException – command is blank. for RunAsync(command, timeout, cancellationToken)

  • TmuxPaneException – The pane is not at a POSIX shell, is in a mode, or its program has exited; or it changed during every read before the command was sent.

  • TmuxObjectNotFoundException – tmux no longer has the pane.

  • TmuxVersionTooLowException – The server is older than tmux 3.4, which cannot delete the command's buffer by name.

  • LibTmuxException – The command's result could not be read, or its private files could not be deleted; inspect the failure before retrying.

  • ArgumentOutOfRangeException – The timeout or output budget is invalid. for RunAsync(request, cancellationToken)

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.Pane.RunAsync.

Esc
Search in

Type to search.

Reference previewOpen reference