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

Window.active_pane

Return the window's active pane.

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

Description#

Errors

Returns an error when the pane listing fails. A window always has an active pane, so Ok(None) means the window disappeared between the snapshot and this call.

Guides#

Pages that discuss active_pane.

In other ports#

The window's active pane

Equivalents of The window's active pane in other languages
Language Equivalent
Python libtmux.Window.active_pane
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript window.Window.activePane
Go tmux.Window.ActivePane
Java io.github.libtmux.Window.activePane
C# LibTmux.Window.ActivePane
C++ libtmux::Window::active_pane
Swift no accessor; Pane.isActive is a flag on the pane, so the active one is found by filtering a listing
OCaml No direct public OCaml equivalent is recorded for this operation.
Perl LibTmux::Window::active_pane Local captured relation. Unknown membership cannot prove that no pane is active.

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference