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

Session.rename/4

Renames an exact session; returns {:ok, result} on command completion.

Source and package
Qualified name
LibTmux.Session.rename/4
Module
LibTmux
Declared in
Session
Package
libtmux
Source
lib/libtmux/entities.ex
rename(connection, ref, name, options \\ []) @spec rename( LibTmux.Action.connection(), LibTmux.Ref.t(), binary(), [LibTmux.Control.call_option()] ) :: {:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}

Description

Names contain 1..1024 UTF-8 bytes without Unicode control characters (Cc). Format syntax remains literal; tmux still normalizes names (including dollar/backslash escaping, and dots and colons on older releases). The only option is timeout, which defaults to 5000ms. Old observations stay unchanged. See LibTmux.Action for outcome semantics.

alias LibTmux.Session

Session.rename(server, session_ref, "work")

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.Session.rename/4.

Esc
Search in

Type to search.

Reference previewOpen reference