Core LibraryalphaAPI Reference

Choose documentation 1

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

function libtmux-elixir latest

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#

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")

Esc

Type to search.

Reference preview Open reference