Core Library0.xAPI reference

Choose documentation 1

latest

Current version

latest
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

Option.get/4

Reads one printed tmux value or returns :unset.

Source and package
Qualified name
LibTmux.Option.get/4
Module
LibTmux
Declared in
Option
Package
libtmux
Source
lib/libtmux/option.ex
get(server, target, key, options \\ []) @spec get(LibTmux.Server.t(), target(), key(), [ get_option() ]) :: {:ok, :unset | {:value, binary()}} | {:error, LibTmux.Error.t()}

Description

The default :local reads only the chosen scope. :effective may use a parent value. :inherited reads the parent directly, even if the chosen scope has a local value. A server or global option set has no parent. An empty configured string is returned as {:value, ""}.

The value has tmux's show-options -v representation. tmux 3.4 escapes some bytes, including variable-shaped dollars, in this output. An empty indexed response needs a second read to distinguish an absent entry. Conflicting observations return :option_changed. The one-shot read hook rules apply to after-show-options.

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.Option.get/4.

Esc
Search in

Type to search.

Reference previewOpen reference