Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

C# API

method libtmux-dotnet latest

Pane.RunAsync

Namespace LibTmux.Pane.RunAsync LibTmux

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

View as Markdown

Source and package
Module
LibTmux
Declared in
Pane
Package
LibTmux
Source
src/LibTmux/Pane.Running.cs
RunAsync ( command : string , timeout : TimeSpan , cancellationToken : CancellationToken ) → Task<PaneRunResult> ( request : PaneRunRequest , cancellationToken : CancellationToken ) → Task<PaneRunResult>
methodoverload2 overloads [source]
Parameters
Returns

The exit status and what the command printed.

Raises
  • 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.

  • 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))

Esc

Type to search.