Window.rename
Renames this window and returns its replacement capture.
Source and package
- Qualified name
-
io.github .libtmux .Window. rename - Package
- io.github.libtmux
- Declared in
Window- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Window.java
- Other languages
- Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGoC#C++Swift Kotlin Scala OCaml F# Clojure
-
Description#
Retain the result to read the changed name. This handle keeps its original captured state.
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.
tmux command#
The tmux commands behind rename.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Rename a window
| Language | Equivalent |
|---|---|
| Python | libtmux |
| 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 |
| 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#.