On this page
LibTmux.Window.RenameAsync
- Module
- LibTmux
- Declared in
- Window
- Package
- LibTmux
- Source
- src/LibTmux/Window.Lifecycle.cs
- Other languages
- PythonTypeScriptRustGoJavaC++Swift
- RenameAsync ( name : string , cancellationToken : CancellationToken ) Task<Window>
-
Renames this window.
tmux expands the name as a format, so a
#in it does not survive verbatim.- Parameters
-
-
name ( string ) – The new name.
-
cancellationToken ( CancellationToken ) – Cancels the tmux command.
-
- Returns
-
A replacement handle carrying the new name.
In other languages Rename a window
- Python
libtmux.Window.rename_window - TypeScript
window.Window.rename - Rust
window.Window.rename - Go
tmux.Window.Rename - Java
io.github.libtmux.Window.Window.rename - C++
libtmux::Window::rename - Swift
Server.rename(_:to:)
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