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

Python API

Python documentation

View as Markdown

Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py
Other languages
Ruby LuaTypeScriptRustGoJava.NETC++Swift
select ( self ) → Window
method [source]
method [source]
select

Select window.

To select a window object asynchrously. If a window object exists and is no longer the current window, w.select_window() will make w the current window.

In other ports Make a window active

Examples

>>> window = session.active_window
>>> new_window = session.new_window()
>>> session.refresh()
>>> active_windows = [w for w in session.windows if w.window_active == '1']
>>> new_window.window_active == '1'
False
>>> new_window.select()
Window(...)
>>> new_window.window_active == '1'
True
await window.select();

0 declared, 0 inherited

Esc

Type to search.