Pane.window
Return the window that contains this pane.
Source and package
-
Description#
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.
Guides#
Pages that discuss window.
In other ports#
Find a pane's containing window
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | pane |
| Go | tmux |
| Java | io |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | no direct accessor; match Pane.windowID against Snapshot.windows |
| OCaml | Libtmux |
| Perl | Lib Resolves the physical window from the retained graph, without selecting a session context. |
No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure or F#.