From a390ea091e9cb669b5f93360679a93c041c4a6c4 Mon Sep 17 00:00:00 2001 From: Bob Date: Tue, 16 Apr 2024 15:55:09 +0800 Subject: [PATCH] exit with 1 if second left > 0 --- termdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termdown.py b/termdown.py index 3a093d3..e1bde91 100755 --- a/termdown.py +++ b/termdown.py @@ -438,7 +438,7 @@ def countdown( sync_start += time_paused target += time_paused if input_action == INPUT_EXIT: # no elif here! input_action may have changed - break + exit(1) elif input_action == INPUT_PAUSE: continue elif input_action == INPUT_RESET: