Core LibraryunreleasedAPI reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux-haskell has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-haskell

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.waitForPaneState
Declared in
LibTmux.Server
Package
libtmux-haskell
Source
src/LibTmux/Server.hs

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 calls
No call edges in the Haskell model.

The 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 6

Types and data waitForPaneState names in its declaration.

tmux command

task material

The 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 material

The C declarations in tmux that implement these commands.

Guides

task material

Pages that discuss waitForPaneState.

Esc
Search in

Type to search.

Reference previewOpen reference