Pane.SendTextAndWaitAsync
Types a line, presses Enter, and waits for a later line to contain the text.
Source and package
- Qualified name
-
LibTmux .Pane. Send Text And Wait Async - Namespace
- LibTmux
- Declared in
Pane- Package
- LibTmux
- Source
- src/LibTmux/Pane.Waiting.cs
- Task<Pane
Wait > SendTextAndWaitAsync( string line, string text, TimeResult Span timeout, CancellationToken cancellationToken = default ) -
Description
SendKeysAndWaitAsync()withSendTextAsync()'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
-
-
timeout(TimeSpan ) – How long to wait, counted from the call. -
cancellationToken(CancellationToken ) – Stops the wait; a line already sent stays sent.Default
default
- Returns
-
How the wait ended.
- Errors
-
-
Argument
Null –Exception lineis null. -
Argument
Exception – The match text is empty or spans lines, or the typed line exceeds 65536 UTF-8 bytes. -
Argument
Out – The timeout is negative or longer than 49 days.Of Range Exception -
IOException – Echo projection exceeds its bounded work.
-
Regex
Match – Echo matching exceeds its finite regex time.Timeout Exception -
Tmux
Pane – The pane's program had already exited, or the pane changed during every read until the timeout, so nothing was sent.Exception -
Tmux
Object – tmux no longer has the pane.Not Found Exception -
Lib
Tmux – The line was typed but Enter failed. The pane may already have acted on it; do not retry the whole call.Exception
-
Recorded calls
source callsThe 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.SendTextAndWaitAsync.
tmux command
task materialThe tmux commands behind SendTextAndWaitAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.