Server.rename_session
rename_session(session => Session|session_id, name => string).
Source and package
-
Description#
Rename the selected
LibTmux::Sessionusing a literal name. Existing captured handles keep the old observed name; use"snapshot"to observe the change.Returns
undefafter command acceptance. Performs I/O; failures propagate throughLibTmux::X. Captured objects are not modified.$server->rename_session(session => $session, name => 'application');Methods#
tmux command#
The tmux commands behind rename_session.
display-message (daemon identity or target preflight) rename-session tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Rename a session
| 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 | session |
| Rust | session |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.