Close all panes atexit
This commit is contained in:
parent
ba3bf480f7
commit
b834be9f00
1 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
"""WizardKit: TUI functions"""
|
||||
# vim: sts=2 sw=2 ts=2
|
||||
|
||||
import atexit
|
||||
import logging
|
||||
import time
|
||||
|
||||
|
|
@ -38,6 +39,9 @@ class TUI():
|
|||
self.init_tmux()
|
||||
start_thread(self.fix_layout_loop)
|
||||
|
||||
# Close all panes at exit
|
||||
atexit.register(tmux.kill_all_panes)
|
||||
|
||||
def add_info_pane(self, height, **tmux_args) -> None:
|
||||
"""Add info pane."""
|
||||
tmux_args.update({
|
||||
|
|
|
|||
Loading…
Reference in a new issue