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

Session.last_window

Select the last (previously selected) window.

Source and package
Qualified name
libtmux.Session.last_window
Module
libtmux
Declared in
Session
Package
libtmux
Source
src/libtmux/session.py
Other languages
PowerShell Julia Ruby Lua TypeScript RustGoJavaC#C++Swift Kotlin Scala F#
last_window (self) → Window

Description#

Wraps $ tmux last-window.

Examples#

>>> w1 = session.new_window(window_name='lw_a')
>>> w2 = session.new_window(window_name='lw_b', attach=True)
>>> session.last_window()
Window(...)
Returns

Window The newly active window.

tmux command last-window

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

Type to search.

Reference preview Open reference