-
Notifications
You must be signed in to change notification settings - Fork 0
Ideas #1
Copy link
Copy link
Open
Description
Double notifications are happening?
Annoying.
Let me look at the code to answer your question.
→ Read countdown.py
The terminal bell (\a) is called multiple times. Looking at wait_for_alarm_command() starting at line 119:
TTY mode (lines 153-173): The bell rings repeatedly in a loop every 0.8 seconds (line 158). The loop uses select with a 0.1s timeout to poll for keypresses, and each time time.monotonic() passes the next_bell threshold, it writes another \a. It keeps ringing until the user presses r (restart) or q (quit).
Non-TTY mode (lines 133-140): The bell rings once each time the prompt is printed, then blocks waiting for user input. If the user enters something other than r or q, it loops back and rings again.
So in normal interactive use (TTY), the bell fires continuously at ~0.8-second intervals until dismissed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels