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

Python API

Python documentation

libtmux.Session.previous_window

Python

View as Markdown

Module
libtmux
Declared in
Session
Package
libtmux
Source
src/libtmux/session.py
Other languages
Ruby Lua TypeScript RustGoJava.NETC++Swift
previous_window ( self ) → Window
method [source]
method [source]
previous_window

Select the previous window.

Wraps $ tmux previous-window.

Examples

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

Window The newly active window.

In other ports Move to the previous window of a session

0 declared, 0 inherited

Esc

Type to search.