Window.select
Select window.
Source and package
-
Description#
To select a window object asynchrously. If a
windowobject exists and is no longer the current window,w.select_window()will makewthe 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'Truetmux command
select-windowIn other ports Make a window active
- PowerShell No source-verified PowerShell equivalent is recorded for this operation.
- Julia No source-verified Julia equivalent is recorded for this operation.
- Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua
- TypeScript
- Rust
- Go
- Java
- C#
- C++
- Swift
- Kotlin No source-verified Kotlin equivalent is recorded for this operation.
- Scala No source-verified Scala equivalent is recorded for this operation.
- F# No source-verified F# equivalent is recorded for this operation.
- PowerShell