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

Namespace LibTmux.Pane.WaitForTextAsync LibTmux

Waits until the pane shows literal text.

View as Markdown

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

Description#

Text already on screen ends the wait at once as PresentAtEntry . Matching is line by line, so the text cannot span lines.

Parameters
  • text ( string ) – The text to wait for, matched within a line. (for WaitForTextAsync(text, timeout, cancellationToken))

  • timeout ( TimeSpan ) – How long to wait. (for WaitForTextAsync(text, timeout, cancellationToken))

  • cancellationToken ( CancellationToken ) – Stops the wait.

  • request ( PaneWaitRequest ) – The patterns and time allowed. (for WaitForTextAsync(request, cancellationToken))

Returns

How the wait ended.

Raises
Esc

Type to search.