Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

method libtmux stable

Window.last_pane

Select the last (previously active) pane via $ tmux last-pane.

Source and package
Qualified name
libtmux.Window.last_pane
Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py
Other languages
PowerShell Julia Ruby Lua TypeScript RustGo Java C#C++Swift Kotlin Scala F#
last_pane ( self, disable_input: bool | None = None, enable_input: bool | None = None, keep_zoom: bool | None = None, ) → Pane | None

Examples#

>>> pane1 = window.active_pane
>>> pane2 = window.split()
>>> pane2.select()
Pane(...)
>>> result = window.last_pane()
Parameters
Returns

Pane or None The selected pane, or None if no last pane exists.

tmux command last-pane

In other ports Return to the pane that was active before
Esc

Type to search.

Reference preview Open reference