waitForPaneState
Observe an exact pane without sending it input. For PaneActive the
link must be current in the session named by the slot. For PaneDead and
PaneAbsent the slot's session anchors the observer, and the observation
covers the whole daemon. Both references must belong to this Server.
Source and package
- Qualified name
-
LibTmux .Server. wait For Pane State - Declared in
LibTmux.Server- Package
- libtmux-haskell
- Source
- src/LibTmux/Server.hs
- waitForPaneState :: Server -> Window
Slot -> PaneRef -> PaneState -> PaneState -> IO PaneWait Options State Wait Result -
Description
Check the state immediately and again after attaching. Control notifications wake the waiter, which confirms state in a fresh capture. Bounded rechecks cover silent changes such as a retained pane dying or window links swapping. This is a level observation and cannot recover a state that has already changed back. Attach hooks can run just as with
withControl.One monotonic deadline covers attachment, observation, and waiting. Scope retirement has its own cleanup budget. Cancellation preserves the incoming exception and any retained owners in its context.
Recorded calls
source callsThe Haskell 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.Server.waitForPaneState.
Referenced declarations
type references 6Types and data waitForPaneState names in its declaration.
- LibTmux.Snapshot.PaneRef data type
- LibTmux.Server.PaneState data type
- LibTmux.Server.PaneStateWaitOptions data type
- LibTmux.Server.PaneStateWaitResult data type
- LibTmux.Server.Server data type
- LibTmux.Creation.WindowSlot data type
tmux command
task materialThe tmux commands behind waitForPaneState.
attach-session (when the initial pane state does not match) display-message if-shell list-clients (when the server has sessions) tmux C API
task materialThe C declarations in tmux that implement these commands.
Guides
task materialPages that discuss waitForPaneState.