libtmux Reference MCP Search
On this page

pane.Pane.window

View as Markdown

Module
pane
Declared in
Pane
Package
libtmux
Source
crates/libtmux/src/pane.rs
window ( self ) Result<Option<Window>, Error>
method [source]
method [source]
window

Return the window that contains this pane.

This re-reads tmux, so a window renamed or moved since discovery is reported as it is now. Ok(None) means the pane no longer has a resolvable containing window. For a linked window, tmux chooses the session context for the pane-ID target rather than preserving this handle's cached session link.

Errors

Returns an error when the parent lookup fails.

Discussed in Traversal

0 declared, 0 inherited

Esc

Type to search.