Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

Pane.SendKeysAndWaitAsync

Sends keys to the pane and waits for what it prints in response.

Source and package
Qualified name
LibTmux.Pane.SendKeysAndWaitAsync
Namespace
LibTmux
Declared in
Pane
Package
LibTmux
Source
src/LibTmux/Pane.Waiting.cs

Description

The wait reads the screen before the keys go, so output that follows at once is not missed, and judges only what the pane prints afterwards: text already on screen never ends it. A shell echoes typed text back, so literal text (Literal, as SendTextAsync() sends) is removed from what the pane shows before matching, including the part of a line the shell has echoed so far. Waiting for done after typing echo done therefore waits for the command's output, not for the line that was typed.

The removal is by text: output identical to a typed line, as a whole word, is removed too. Key names, and text sent with ExpandFormats, Repeat or a copy-mode command, are not removed.

A typed line the pane wrapped onto a second row is still recognised. Like WaitForTextAsync(), the wait sleeps on the pane's output through a control-mode client. Typed literal text may be at most 65536 UTF-8 bytes; ordinary SendKeysAsync() has no echo-projection limit.

Parameters
Returns

How the wait ended.

Errors

Recorded calls

source calls
No call edges in the C# model.

The 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.SendKeysAndWaitAsync.

tmux command

task material

The tmux commands behind SendKeysAndWaitAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

Esc
Search in

Type to search.

Reference previewOpen reference