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

Format.field/1

Encodes one named field for LibTmux.Codec.decode_field/3 with encoding: :escaped_v1.

Source and package
Qualified name
LibTmux.Format.field/1
Module
LibTmux
Declared in
Format
Package
libtmux
Source
lib/libtmux/format.ex
field(name) @spec field(String.t()) :: binary()

Description

Backslashes are replaced first, then dollars and ASCII control bytes. This protects values from tmux 3.4's ambiguous print escaping. The v1: prefix and encoded newlines prevent field text from becoming reply guards. This encodes one field. Capture composes these fields inside its versioned row framing; this is not an arbitrary format wrapper. The caller must still bound the response and validate the field against its schema and the connected server's capabilities.

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.Format.field/1.

Guides

task material

Pages that discuss field/1.

Esc
Search in

Type to search.

Reference previewOpen reference