From 6b18809215431aa096ce3ffe36b378e442e24240 Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Fri, 26 Dec 2025 23:26:14 -0800 Subject: [PATCH] close the interface on quit --- contact/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contact/__main__.py b/contact/__main__.py index 57671db..073d18b 100644 --- a/contact/__main__.py +++ b/contact/__main__.py @@ -129,8 +129,10 @@ def start() -> None: try: curses.wrapper(main) + interface_state.interface.close() except KeyboardInterrupt: logging.info("User exited with Ctrl+C") + interface_state.interface.close() sys.exit(0) except Exception as e: logging.critical("Fatal error", exc_info=True)