Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-elixir

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( LibTmux.Action.connection(), LibTmux.Ref.t(), LibTmux.Ref.t(), 0..2_147_483_647, [LibTmux.Action.membership_option()] ) :: {:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.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_session because 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.

Recorded calls

source calls
No call edges in the Elixir model.

The 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.

Esc
Search in

Type to search.

Reference previewOpen reference