Pane.wait_for_text/4
Polls an exact pane through one-shot capture and returns the first matching screen.
Source and package
- Qualified name
-
LibTmux .Pane. wait _for _text/4 - Module
- LibTmux
- Declared in
Pane- Package
- libtmux
- Source
- lib/libtmux/entities.ex
- wait_for_text(connection, ref, text, options \\ []) @spec wait_for_text( Lib
Tmux (), Lib.Action .connection Tmux (), binary(), [text.Ref .t _wait ()] ) :: {:ok, Lib_option Tmux (binary())} | {:error, Lib.Action .result Tmux () | Lib.Error .t Tmux ()}.Action .Completion Error .t -
Description
The result has the same bounded bytes and capture evidence as
capture/3.textis 1..1048576 literal bytes. The defaultmatch: :substringsearches the captured bytes.match: :linerequires one whole newline-delimited line and rejects newlines intext. A match can be on the first screen. To wait for an application receipt, choose text that typed input cannot echo. The result observes the screen and carries no program exit status.Range, byte and verification options follow
capture/3. The default interval is 100ms after a nonmatching capture. Identity checks, capture calls and intervals share the originaltimeout, which defaults to 5000ms. Native retirement can take its separate cleanup allowance. A Control connection returnsunsupported_transportbefore I/O.An unmatched deadline returns
LibTmux.Errorwith kind:timeoutand phase:wait_for_text. Itsdetailsincludeexpected,match,attempts,elapsed_msandlast_screen. The last screen isniluntil a capture completes. If a capture itself times out, its phase and transport evidence remain in the error with the wait details underdetails.text_wait. Other capture failures, including a missing pane, propagate with their evidence.See the worked receipt example.
- Parameters
-
-
ref(LibTmux ()).Ref .t -
options([text_wait ()])_option Default
[]
Recorded calls
source callsThe Elixir 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.wait_for_text/4.