On this page
io.github.libtmux.Window.Window.rename
- Module
- io.github.libtmux.Window
- Declared in
- Window
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Window.java
- Other languages
- PythonTypeScriptRustGo.NETC++Swift
-
Renames this window and returns a handle on it as it is now.
<p>A
:or.is kept as written on every supported release but 3.7, which refuses the name. A kept delimiter cannot then address the window, since a target splits on both. Unlike a session name, a window name is never rewritten.In other languages Rename a window
- Python
libtmux.Window.rename_window - TypeScript
window.Window.rename - Rust
window.Window.rename - Go
tmux.Window.Rename - .NET
LibTmux.Window.RenameAsync - C++
libtmux::Window::rename - Swift
Server.rename(_:to:)
- Python
Examples
>>> window = session.active_window >>> window.rename_window('My project')
Window(@1 1:My project, Session($1 ...)) >>> window.rename_window('New name')
Window(@1 1:New name, Session($1 ...)) await window.rename("editor"); 0 declared, 0 inherited