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_key:bind/4

Register or replace one binding with validated command values. Commands can be one value or a flat nonempty list; tmux_command:to_config/1 applies the aggregate count and byte bounds. Options follow bind_options/0. Arguments, table names and notes are literal bytes at registration; stored commands still interpret their values and formats when a client executes them.

Source and package
Qualified name
tmux_key:bind/4
Declared in
tmux_key
Package
libtmux_erlang
Source
apps/libtmux_erlang/src/tmux_key.erl
bind(Server, Key0, Commands, Options) -spec bind(tmux_server:t(), key(), tmux_command:t() | [tmux_command:t(), ...], bind_options()) -> {ok, tmux_operation:completed()} | {error, tmux_operation:failure()}.

Description#

Performs I/O. tmux parses the commands before replacing an existing binding. The result confirms registration, while effects of future key presses need their own acknowledgement. Replacement resets the old repeat flag and note using the supplied options. Errors preserve backend diagnostics and unknown outcomes; there is no rollback or automatic retry.

tmux command#

The tmux commands behind bind/4.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss bind/4.

Esc

Type to search.

Reference previewOpen reference