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

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
crates/libtmux/src/window.rs
Other languages
PythonTypeScriptGoJava.NETC++Swift
rename ( mut , name : impl Into<TmuxArg> ) → Result<&mut Self, Error>
method [source]
method [source]
rename

Rename the window and update this handle.

The name belongs to the window, so every session linking it sees the change.

Errors

Returns an error when tmux refuses the name. tmux expands the name as a format before it checks it, so #(command) in one runs a shell command. See [the crate documentation][crate#a-name-reaches-tmux-as-a-format] before passing text a caller supplied.

In other ports Rename a window

0 declared, 0 inherited

Esc

Type to search.