On this page
LibTmux.Window.SelectAsync
- Module
- LibTmux
- Declared in
- Window
- Package
- LibTmux
- Source
- src/LibTmux/Window.Lifecycle.cs
- Other languages
- PythonTypeScriptRustGoJavaC++Swift
- SelectAsync ( cancellationToken : CancellationToken ) Task<Window>
-
Selects this window in its session.
- Parameters
-
-
cancellationToken ( CancellationToken ) – Cancels the tmux command.
-
- Returns
-
A replacement handle carrying the state after selection.
In other languages Make a window active
- Python
libtmux.Window.select - TypeScript
window.Window.select - Rust
window.Window.select - Go
tmux.Window.Select - Java
io.github.libtmux.Window.Window.select - 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'
True await window.select(); 0 declared, 0 inherited