Core LibraryunreleasedAPI Reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux_erlang has not been released. Its API may change during development. This site's structure and URLs may change too.

function libtmux-erlang latest

tmux_server:bind/2

Explicitly read current fields from this server and register the new value. For sessions, physical windows and panes, the read uses the stable ID and discards the supplied field observations. This explicit call accepts an edited target; ordinary actions require its captured target association to match and reject mismatches before dispatch. The returned row carries a new private observation association; see tmux_model. It provides no atomic identity check. Window-link binding checks its session/index and expected physical window. A replaced or missing membership returns stale_link. This observed preflight does not make a later action atomic.

Source and package
Qualified name
tmux_server:bind/2
Declared in
tmux_server
Package
libtmux_erlang
Source
apps/libtmux_erlang/src/tmux_server.erl
bind(Server, Row) -spec bind(t(), tmux_model:row()) -> {ok, tmux_model:row()} | {error, map()}.

Description#

Invalid rows are rejected before I/O:

Examples#

1> tmux_server:bind(invalid_server, invalid_row).
{error,#{code => invalid_row,path => []}}
Parameters

Guides#

Pages that discuss bind/2.

Esc

Type to search.

Reference previewOpen reference