Server.move_window
move_window(link => WindowLink|session_id:index, session => Session|session_id, index => integer?).
Source and package
-
Description#
Move one contextual
LibTmux::WindowLinkinto the destination session/index. Other links of the physical window keep their own associations. Use"link_window"to add an association without moving one.Returns
undefafter command acceptance. Performs I/O; failures propagate throughLibTmux::X. Captured objects are not modified.$server->move_window(link => $link, session => $session, index => 4);Methods#
tmux command#
The tmux commands behind move_window.
display-message (daemon identity or target preflight) move-window tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Move a window to another session or index
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Erlang | tmux |
| 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 |
No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.