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

Session.activePane

The pane tmux marks active in this session's active window.

Source and package
Qualified name
Session.activePane
Module
session
Declared in
Session
Package
libtmux
Source
packages/libtmux/src/session.ts
Other languages
PowerShell Julia Elixir PythonRuby Lua Rust GoJavaC#C++ Swift Kotlin Scala F#
activePane(): Pane | undefined

Description#

This is two hops rather than one because pane_active is per window: every window has an active pane, and only the active window's is the session's.

Examples#

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

In other ports#

The active pane of a session's active window

Equivalents of The active pane of a session's active window in other languages
Language Equivalent
Python libtmux.Session.active_pane
Ruby LibTmux::WindowSnapshot#active_pane
Rust no equivalent on Session
Go tmux.Session.ActivePane
Java io.github.libtmux.Session.activePane
C# LibTmux.Session.ActivePane
C++ libtmux::Session::active_pane
Swift no equivalent on Session

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

Esc

Type to search.

Reference previewOpen reference