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

WindowLink.unlink/3

Removes one observed session/index/window binding.

Source and package
Qualified name
LibTmux.WindowLink.unlink/3
Module
LibTmux
Declared in
WindowLink
Package
libtmux
Source
lib/libtmux/entities.ex
unlink(connection, ref, options \\ []) @spec unlink(LibTmux.Action.connection(), LibTmux.Ref.t(), [ LibTmux.Action.membership_option() ]) :: {:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}

Description

tmux checks the full tuple and unlinks in the same command queue. A missing or reoccupied slot returns :stale_target. tmux refuses removal of the physical window's final link, and may close a session that loses its sole window while the window remains linked elsewhere.

This action uses a Server with the usual incarnation check/use race. A Control connection returns :unsupported_transport. A grouped session returns :grouped_session, since unlinking would also change its peers. The default timeout is 5000ms. A newly created binding with the same tuple is indistinguishable from the original.

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.WindowLink.unlink/3.

Esc
Search in

Type to search.

Reference previewOpen reference