Pane.WaitForTextAsync
Waits until the pane shows literal text.
Source and package
- Module
- LibTmux
- Declared in
- Pane
- Package
- LibTmux
- Source
- src/LibTmux/Pane.Waiting.cs
- WaitForTextAsync ( text : string , timeout : Time
Span , cancellationToken : CancellationToken ) Task<PaneWait > ( request : PaneResult Wait , cancellationToken : CancellationRequest Token ) Task<PaneWait >Result -
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 ( Time
Span ) – How long to wait. (forWaitForTextAsync(text, timeout, cancellationToken)) -
cancellationToken ( Cancellation
Token ) – Stops the wait. -
request ( Pane
Wait ) – The patterns and time allowed. (forRequest WaitForTextAsync(request, cancellationToken))
-
- Returns
-
How the wait ended.
- Raises
-
-
Argument
Exception – The text is empty or contains a line break. (forWaitForTextAsync(text, timeout, cancellationToken)) -
Argument
Out – The timeout is negative or longer than 49 days.Of Range Exception -
Tmux
Transport – Control observation failed and polling was not enabled.Exception -
Tmux
Object – tmux no longer has the pane when the wait begins.Not Found Exception -
Regex
Match – A pattern exceeded its own match timeout. (forTimeout Exception WaitForTextAsync(request, cancellationToken))
-