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"""
|
"""WizardKit: TUI functions"""
|
||||||
# vim: sts=2 sw=2 ts=2
|
# vim: sts=2 sw=2 ts=2
|
||||||
|
|
||||||
|
import atexit
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
@ -38,6 +39,9 @@ class TUI():
|
||||||
self.init_tmux()
|
self.init_tmux()
|
||||||
start_thread(self.fix_layout_loop)
|
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:
|
def add_info_pane(self, height, **tmux_args) -> None:
|
||||||
"""Add info pane."""
|
"""Add info pane."""
|
||||||
tmux_args.update({
|
tmux_args.update({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue