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

Server.new/1

Constructs a descriptor for an existing server without connecting or creating it.

Source and package
Qualified name
LibTmux.Server.new/1
Module
LibTmux
Declared in
Server
Package
libtmux
Source
lib/libtmux/server.ex
new(options) @spec new([option()]) :: t()

Description

:socket selects the socket by path and :socket_name by name; pass at most one. With neither, the descriptor reads LIBTMUX_SOCKET_PATH, then LIBTMUX_SOCKET, from :env, and selects no socket when neither is set, so tmux uses its default. See "Choosing the server" in the module documentation. Raises ArgumentError for conflicting or invalid input, naming a variable but never its value.

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.Server.new/1.

Guides

task material

Pages that discuss new/1.

Esc
Search in

Type to search.

Reference previewOpen reference