watch_screen
Source and package
- Qualified name
-
LibTmux .watch _screen - Module
- LibTmux
- Package
- LibTmux
- Source
- src/screen_wait.jl
-
Methods#
Take the entry read of
pane's visible screen, callf(screen)with aScreenWatchand return its value. Keys sent insidefcannot be counted as already on the entry screen, so a block can act and then wait:watch_screen(f, server::Server, pane::PaneRef; interval=0.1, timeout=5.0,cancel=nothing)watch_screen(server, pane) do screensend_keys(server, pane, "echo ready", "Enter")wait_for_text(screen, "ready")endtimeoutis one total deadline from the entry read, shared by every wait in the block;intervalis the pause between reads.cancelis aCancellationToken. Every wait in the block counts against the entry read taken when the block opened, so repeat the same text only with a newwatch_screen. The entry read raisesScreenWaitEndedwhen the pane or server is already gone. Apanefrom another server, or from an earlier generation of this one, raisesCrossServerReferenceorStaleReference. The handle is not valid afterfreturns.
Guides#
Pages that discuss watch_screen.