Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

Pane.window

Return the window that contains this pane.

Source and package
Qualified name
libtmux::pane::Pane::window
Module
pane
Declared in
Pane
Package
libtmux
Source
crates/libtmux/src/pane.rs
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptGoJavaC#C++ Swift KotlinScalaOCaml F# Clojure
pub async fn window(&self) -> Result<Option<Window>, Error>

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

Equivalents of Find a pane's containing window in other languages
Language Equivalent
Python libtmux.Pane.window
Ruby LibTmux::PaneSnapshot#window
Lua libtmux.SnapshotPane.window
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript pane.Pane.window
Go tmux.Pane.Window
Java io.github.libtmux.Pane.window
Kotlin io.github.libtmux.kotlin.Pane.window
Scala io.github.libtmux.scaladsl.Pane.window
C# LibTmux.Pane.Window
C++ libtmux::Pane::window
Swift no direct accessor; match Pane.windowID against Snapshot.windows
OCaml Libtmux.Pane.window
Perl LibTmux::Pane::window 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#.

Esc

Type to search.

Reference previewOpen reference