Server.link_window
link_window(window => Window|window_id, session => Session|session_id, index => integer?).
Source and package
-
Description#
Add an association from a physical
LibTmux::Windowto aLibTmux::Session. index is optional; conflicts remain command failures. Existing associations are preserved. Inspect newLibTmux::WindowLinkrecords through"snapshot".Returns
undefafter command acceptance. Performs I/O; failures propagate throughLibTmux::X. Captured objects are not modified.$server->link_window(window => $window, session => $session, index => 4);Methods#
tmux command#
The tmux commands behind link_window.
display-message (daemon identity or target preflight) link-window tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Link a window into another session
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| 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 PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.