From 4616a213593232c9c1c88dd68639c148ce0b9192 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Mon, 16 Mar 2026 14:02:11 -0700 Subject: [PATCH] fix(app): exit to prompt instead of font picker when pygame exits When user presses Ctrl+C in pygame display, the pipeline mode now returns to the command prompt instead of continuing to the font picker. --- engine/app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/app.py b/engine/app.py index 72aaace..ccfca81 100644 --- a/engine/app.py +++ b/engine/app.py @@ -1134,8 +1134,11 @@ def run_pipeline_mode(preset_name: str = "demo"): frame += 1 except KeyboardInterrupt: - pass - finally: pipeline.cleanup() display.cleanup() print("\n \033[38;5;245mPipeline stopped\033[0m") + return # Exit pipeline mode, not font picker + + pipeline.cleanup() + display.cleanup() + print("\n \033[38;5;245mPipeline stopped\033[0m")