Window.kill
Kill Window .
Source and package
-
Description#
Examples#
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.windowsTrue- Parameters
-
-
all_except(bool | None) #
-
tmux command
kill-windowIn other ports Close a window
- PowerShell No source-verified PowerShell equivalent is recorded for this operation.
- Julia No source-verified Julia equivalent is recorded for this operation.
- Ruby
- Lua
- TypeScript
- Rust
- Go
- Java
- C#
- C++
- Swift
- Kotlin No source-verified Kotlin equivalent is recorded for this operation.
- Scala No source-verified Scala equivalent is recorded for this operation.
- F# No source-verified F# equivalent is recorded for this operation.