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

Window.rename/4

Renames an exact physical window across all its memberships.

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

Description

Returns {:ok, result} on command completion; unsuccessful outcomes return {:error, %LibTmux.Action.CompletionError{}} with their original evidence.

Names contain 1..1024 UTF-8 bytes without Unicode control characters (Cc), with literal format syntax. tmux still applies name normalization, including dollar/backslash escaping. Control characters fail before I/O on both transports. Optional session: session_ref requires membership in that exact session; it does not select a captured link index. timeout defaults to 5000ms. See LibTmux.Action for transport and outcomes.

alias LibTmux.Window

Window.rename(control, window_ref, "editor")

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

Guides

task material

Pages that discuss rename/4.

Esc
Search in

Type to search.

Reference previewOpen reference