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

Python API

Python documentation

View as Markdown

Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py
Other languages
RubyLuaTypeScriptRustGoJava.NETC++Swift
rename_window ( self , new_name : str ) → Window
method [source]
method [source]
rename_window

Rename window.

Parameters
  • new_name ( str ) – name of the window

In other ports Rename a window

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

Esc

Type to search.