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_session/3

Creates a named detached session on an existing server through one-shot execution.

Source and package
Qualified name
LibTmux.Server.new_session/3
Module
LibTmux
Declared in
Server
Package
libtmux
Source
lib/libtmux/server.ex

Description

Returns {:ok, result} on completion, with %{id: session_id, ref: nil} as its value. Capture a fresh observation for a bound reference. There is no observed target to validate; this command acts on the server answering at the descriptor's endpoint. It never starts a missing server. A missing endpoint or duplicate session name returns an error with execution evidence. Control connections are unsupported.

Names contain 1..1024 UTF-8 bytes without control characters. Format syntax stays literal; tmux's version-dependent name normalization still applies. Options are timeout (5000ms), literal cwd, and command: :default, {:shell, nonempty_bytes} or {:argv, [program | arguments]}. Command forms follow LibTmux.Pane.split/3, except :empty is unsupported for creation. Acknowledgement does not prove that the program started or finished. See LibTmux.Action for completion and failure handling.

alias LibTmux.Server

Server.new_session(server, "extra-work", command: {:argv, ["/bin/cat"]})

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_session/3.

Esc
Search in

Type to search.

Reference previewOpen reference