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.SendTextAndWaitAsync

Namespace LibTmux.Pane.SendTextAndWaitAsync LibTmux

Types a line, presses Enter, and waits for a later line to contain the text.

View as Markdown

Source and package
Module
LibTmux
Declared in
Pane
Package
LibTmux
Source
src/LibTmux/Pane.Waiting.cs
SendTextAndWaitAsync ( line : string , text : string , timeout : TimeSpan , cancellationToken : CancellationToken ) → Task<PaneWaitResult>
method [source]

Description#

SendKeysAndWaitAsync with SendTextAsync 's keys: the screen before the line is typed never ends the wait, and the line's echo is discounted. The typed line may be at most 65536 UTF-8 bytes so echo projection fits within the wait's work budget.

Parameters
  • line ( string ) – The line to type, sent verbatim.

  • text ( string ) – The text to wait for, matched literally.

  • timeout ( TimeSpan ) – How long to wait, counted from the call.

  • cancellationToken ( CancellationToken ) – Stops the wait; a line already sent stays sent.

Returns

How the wait ended.

Raises
Esc

Type to search.