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.status/1

Reads the pinned epoch's phase, identity and terminal diagnostics without I/O.

Source and package
Qualified name
LibTmux.Control.status/1
Module
LibTmux
Declared in
Control
Package
libtmux
Source
lib/libtmux/control.ex
status(control) @spec status(t()) :: {:ok, connection_status()} | {:error, LibTmux.Error.t()}

Description

terminal is nil before a terminal report, or :unavailable when the report is missing or an ended epoch has no report. A report contains reason, its error phase and at most 8192 raw stderr bytes. Empty stderr means no bytes were captured; the buffer may be incomplete and need not be UTF-8. It can contain application data and is never logged automatically.

A terminal report can coexist with :closing or unknown cleanup. Its reason is an observed cause, not necessarily the original cause, and does not alter operation outcomes. Status fields are separate observations, not an atomic snapshot. A replacement epoch starts without the old report; old handles remain stale. Losing the status owner returns the existing context error.

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.status/1.

Esc
Search in

Type to search.

Reference previewOpen reference