WaitForText
WaitForText blocks until some line of the pane's screen contains text.
Source and package
- Qualified name
-
tmuxtest.Wait For Text - Package
- tmuxtest
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/tmuxtest/screen.go
-
Description#
The screen includes the command
TypeorRunInPanetyped, as the terminal echoed it. Wait for text the command prints and the typed line does not contain, or the wait holds before the command has run: after typing "sleep 2; echo READY", wait for a line that is exactly READY withWaitForLine, not for text containing READY.A pane that never shows text fails the test with the screen it last read.