- Module
- window
- Declared in
- Window
- Package
- libtmux
- Source
- packages/libtmux/src/window.ts
- Other languages
- PythonRubyLuaRustGoJava.NETC++Swift
-
Destroy this window, unlinking it from every session it is in.
In other ports Close a window
- Python
libtmux.Window.kill - Ruby
LibTmux::Window#kill - Lua
libtmux.Window:kill - Rust
window.Window.kill - Go
tmux.Window.Kill - Java
io.github.libtmux.Window.Window.kill - .NET
LibTmux.Window.KillAsync - C++
libtmux::Window::kill - Swift
Server.kill(_:)
- Python
Examples
await window.kill();Kill a window:
>>> window_1 = session.new_window()>>> window_1 in session.windowsTrue>>> window_1.kill()>>> window_1 not in session.windowsTrueKill all windows except the current one:
>>> one_window_to_rule_them_all = session.new_window()>>> other_windows = session.new_window(... ), session.new_window()>>> all([w in session.windows for w in other_windows])True>>> one_window_to_rule_them_all.kill(all_except=True)>>> all([w not in session.windows for w in other_windows])True>>> one_window_to_rule_them_all in session.windowsTrue0 declared, 0 inherited