On this page
io.github.libtmux.Session.Session.kill
- Module
- io.github.libtmux.Session
- Declared in
- Session
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Session.java
- Other languages
- PythonTypeScriptRustGo.NETC++Swift
-
Ends this session. Every window in it goes with it.
In other languages End a session
- Python
libtmux.Session.kill - TypeScript
session.Session.kill - Rust
session.Session.kill - Go
tmux.Session.Kill - .NET
LibTmux.Session.KillAsync - C++
libtmux::Session::kill - Swift
Server.kill(_:)
- Python
Examples
Kill a session:
>>> session_1 = server.new_session() >>> session_1 in server.sessions
True >>> session_1.kill() >>> session_1 not in server.sessions
True Kill all sessions except the current one:
>>> one_session_to_rule_them_all = server.new_session() >>> other_sessions = server.new_session(
... ), server.new_session() >>> all([w in server.sessions for w in other_sessions])
True >>> one_session_to_rule_them_all.kill(all_except=True) >>> all([w not in server.sessions for w in other_sessions])
True >>> one_session_to_rule_them_all in server.sessions
True await session.kill(); 0 declared, 0 inherited