Skip to content

Ideas #1

@jamessimas

Description

@jamessimas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions