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-ts latest

Window.activePane

The pane tmux marks active in this window.

Source and package
Qualified name
Window.activePane
Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts
Other languages
PowerShell Julia Elixir Python Ruby Lua RustGoJavaC#C++ Swift Kotlin Scala F#
activePane(): Pane | undefined

Description#

pane_active is scoped to a window, so filtering a session's panes on it yields one per window rather than one overall. Reaching the active pane through the window it belongs to is what makes the answer singular.

Examples#

await window.activePane?.sendKeys("echo hello");

Guides#

Pages that discuss activePane.

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
Rust window.Window.active_pane
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

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

Esc

Type to search.

Reference previewOpen reference