- Module
- libtmux
- Declared in
- Window
- Package
- libtmux
- Source
- src/libtmux/window.py
- Other languages
- Ruby LuaTypeScriptRustGoJava.NETC++Swift
-
Select window.
To select a window object asynchrously. If a
windowobject exists and is no longer the current window,w.select_window()will makewthe current window.In other ports Make a window active
- Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua
libtmux.WindowLink:select - TypeScript
window.Window.select - Rust
window.Window.select - Go
tmux.Window.Select - Java
io.github.libtmux.Window.Window.select - .NET
LibTmux.Window.SelectAsync - C++
libtmux::Window::select - Swift
Server.select(_:)
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'Trueawait window.select();0 declared, 0 inherited