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
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRuby Lua Rust GoJavaC#C++ Swift Kotlin Scala OCaml F# Clojure
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
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
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
OCaml No direct public OCaml equivalent is recorded for this operation.
Perl No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

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

Esc

Type to search.

Reference previewOpen reference