Window.rename_window
Rename window.
Source and package
-
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 ...))
tmux command#
The tmux commands behind rename_window.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Rename a window
| Language | Equivalent |
|---|---|
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | window |
| Rust | window |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
| Perl | Lib Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes. |
No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.