Session.selectWindow
Select the last, next, or previous window, or one named by target.
Source and package
-
Examples#
await session.selectWindow("next");- Parameters
-
-
target(Window | WindowTarget ) #
-
tmux command#
The tmux commands behind selectWindow.
last-window (the target is "last") next-window (the target is "next") previous-window (the target is "previous") select-window (the target is not last, next or previous) tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Make a window of a session active
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| Rust | no equivalent on Session |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | no equivalent on Session |
| Swift | no equivalent on Session |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.