Window.move_to
Move this window to an index, possibly in another session.
Source and package
-
Description#
The destination is a session and an index rather than a target string, because those are the two things tmux needs and a string could express neither or both.
Errors
Returns
Error::ServerMismatchwhensession()belongs to another server, or an error when the destination is occupied or absent.
tmux command#
The tmux commands behind move_to.
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 |
| 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#.