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

Control.submit/3

Admits one request and returns its retained operation handle.

Source and package
Qualified name
LibTmux.Control.submit/3
Module
LibTmux
Declared in
Control
Package
libtmux
Source
lib/libtmux/control.ex
submit(control, request, options \\ []) @spec submit(t(), LibTmux.Control.Request.t(), [ call_option() ]) :: {:ok, LibTmux.Operation.t()} | {:error, LibTmux.Error.t()}

Description

timeout defaults to 5000ms and covers validation, admission, queueing, writes and replies under one monotonic deadline. Request binaries are detached before publication. Invalid input, overload or stale context before admission returns a no-write error. Every successful admission returns its Operation, even if its context disappears before publication. Inspect that handle for the eventual canonical result or an explicit lost-context error.

Closing the connection can affect sibling operations. Command replies do not prove external program exit. Caller timeout does not authorize replay.

See the worked example.

Parameters

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.Control.submit/3.

tmux command

task material

The tmux commands behind submit/3.

display-message (the request reads a field) set-option (the request sets a user option)

tmux C API

task material

The C declarations in tmux that implement these commands.

Guides

task material

Pages that discuss submit/3.

Esc
Search in

Type to search.

Reference previewOpen reference