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.previous_window

Select the previous window.

Source and package
Qualified name
libtmux.Session.previous_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#
previous_window (self) → Window

Description#

Wraps $ tmux previous-window.

Examples#

>>> w = session.new_window(window_name='pw_test')
>>> session.previous_window()
Window(...)
Returns

Window The newly active window.

tmux command previous-window

In other ports Move to the previous window of a session
Esc

Type to search.

Reference preview Open reference