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'True
tmux command#
The tmux commands behind select.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Make a window active
| Language | Equivalent |
|---|---|
| Lua | libtmux |
| Erlang | tmux Selects a captured membership in its session. |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | window |
| Rust | window |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
| Perl | Lib Requires an explicit WindowLink or session_id:index context; a physical window alone does not select a session placement. |
No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.