- Module
- session
- Declared in
- Session
- Package
- libtmux
- Source
- packages/libtmux/src/session.ts
- Other languages
- PythonRubyLuaRustGoJava.NETC++Swift
-
Destroy this session.
In other ports End a session
- Python
libtmux.Session.kill - Ruby
LibTmux::Session#kill - Lua
libtmux.Session:kill - Rust
session.Session.kill - Go
tmux.Session.Kill - Java
io.github.libtmux.Session.Session.kill - .NET
LibTmux.Session.KillAsync - C++
libtmux::Session::kill - Swift
Server.kill(_:)
- Python
Examples
await session.kill();Kill a session:
>>> session_1 = server.new_session()>>> session_1 in server.sessionsTrue>>> session_1.kill()>>> session_1 not in server.sessionsTrueKill 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.sessionsTrue0 declared, 0 inherited