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_command:sequence/1

Build one bounded native command sequence without I/O. Members must be a nonempty flat list of at most 256 command values. Their combined executable argv is limited to 2041 words and 32 KiB including separator overhead. Arguments keep the literal separator protection of raw/2; only boundaries between members become native command separators in argv/1.

Source and package
Qualified name
tmux_command:sequence/1
Declared in
tmux_command
Package
libtmux_erlang
Source
apps/libtmux_erlang/src/tmux_command.erl
sequence/1 -spec sequence([t(), ...]) -> {ok, t()} | {error, map()}.

Description#

Captured members must share an endpoint origin. That origin also binds the sequence; raw members use the caller's explicitly selected endpoint. Submit through tmux_server:command/3 or tmux_operation:start/3.

Execution is not atomic. A failed member can leave a completed prefix, and commands can wait or interleave with other work. The one-shot result contains combined bounded stdout/stderr and native exit status, without per-member completion attribution or rollback. Control-mode eligibility is separate. to_config/1 can serialize a sequence with the same origin-loss policy as other configuration text.

Parameters
Esc

Type to search.

Reference previewOpen reference