Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

method libtmux-perl latest

Server.rename_window

rename_window(window => Window|window_id, name => string).

Source and package
Qualified name
LibTmux::Server::rename_window
Module
LibTmux
Declared in
Server
Package
LibTmux
Source
packages/core/lib/LibTmux/Server.pm
Other languages
Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGoJavaC#C++Swift Kotlin Scala OCaml F# Clojure
sub rename_window($self, %args)

Description#

Rename the physical LibTmux::Window across all its links. Names remain literal rather than expanding tmux formats. Captured handles keep their observed name.

Returns undef after command acceptance. Performs I/O; failures propagate through LibTmux::X. Captured objects are not modified.

$server->rename_window(window => $window, name => 'logs');

Methods#

Parameters

tmux command#

The tmux commands behind rename_window.

display-message (daemon identity or target preflight) rename-window

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Rename a window

Equivalents of Rename a window in other languages
Language Equivalent
Python libtmux.Window.rename_window
Ruby LibTmux::Window#rename
Lua libtmux.Window:rename
Erlang tmux_window:rename/2
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript window.Window.rename
Rust window.Window.rename
Go tmux.Window.Rename
Java io.github.libtmux.Window.rename
C# LibTmux.Window.RenameAsync
C++ libtmux::Window::rename
Swift Server.rename(_:to:)
OCaml Libtmux_unix.Client.rename_window

No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference