Server.kill_session
kill_session(session => Session|session_id).
Source and package
-
Description#
Destroy the selected
LibTmux::Sessionand its links. Windows linked elsewhere can survive. Captured data remains local; later mutations through stale generation handles are checked.Returns
undefafter command acceptance. Performs I/O; failures propagate throughLibTmux::X. Captured objects are not modified.$server->kill_session(session => $session);Methods#
tmux command#
The tmux commands behind kill_session.
display-message (daemon identity or target preflight) kill-session tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
End 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#.