Window.link/5
Links an exact physical window at the given index in an exact session.
Source and package
- Qualified name
-
LibTmux .Window. link/5 - Module
- LibTmux
- Declared in
Window- Package
- libtmux
- Source
- lib/libtmux/entities.ex
- link(connection, window, destination, index, options \\ []) @spec link( Lib
Tmux (), Lib.Action .connection Tmux (), Lib.Ref .t Tmux (), 0..2_147_483_647, [Lib.Ref .t Tmux ()] ) :: {:ok, LibTmux.Action.result(:ok)} | {:error, Lib.Action .membership _option Tmux ()}.Action .error -
Description
The two references must name the same live server incarnation. The index is in 0..2147483647. tmux preserves the active window and reports a failed outcome if the destination index is occupied. The window and its panes remain shared across their memberships.
This action uses a Server. A Control connection returns
:unsupported_transport. A grouped destination returns:grouped_sessionbecause tmux synchronizes membership across sessions in the group. The default timeout is 5000ms. An incarnation check precedes the native action and leaves the usual one-shot check/use race.See the worked example.
- Parameters
-
-
window(LibTmux ()).Ref .t -
index(0..2_147_483_647) -
options([LibTmux ()]).Action .membership _option Default
[]
Recorded calls
source callsThe Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Window.link/5.