Close all panes atexit

This commit is contained in:
2Shirt 2023-04-09 16:32:13 -07:00
parent ba3bf480f7
commit b834be9f00
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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({