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

Select window.

Source and package
Qualified name
libtmux.Window.select
Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py
Other languages
PowerShell Julia Ruby LuaTypeScriptRustGoJavaC#C++Swift Kotlin Scala F#
select (self) → Window

Description#

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.

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

tmux command select-window

In other ports Make a window active
Esc

Type to search.

Reference preview Open reference