Pane.kill
Kill Pane.
Source and package
-
Description#
Examples#
Kill a pane:
>>> pane_1 = pane.split()>>> pane_1 in window.panesTrue>>> pane_1.kill()>>> pane_1 not in window.panesTrueKill all panes except the current one:
>>> pane.window.resize(height=100, width=100)Window(@1 1...)>>> one_pane_to_rule_them_all = pane.split()>>> other_panes = pane.split(... ), pane.split()>>> all([p in window.panes for p in other_panes])True>>> one_pane_to_rule_them_all.kill(all_except=True)>>> all([p not in window.panes for p in other_panes])True>>> one_pane_to_rule_them_all in window.panesTrue- Parameters
-
-
all_except(bool | None) #
-
tmux command#
The tmux commands behind kill.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Close a pane
| Language | Equivalent |
|---|---|
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
| Perl | Lib Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes. |
No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.