A port of https://github.com/W-A-James/term-timer. Originally written in Typescript for use with Node.js. This port was written to give a more responsive terminal experience. This port currently only supports unix-like systems and is currently only tested on an x86 Ubuntu 22.04 machine.
Uses sounds from this sound collection
- Simple terminal-based UI
- Alarm sound using CSFML
- libsfml-dev 2.6.1
git clone [email protected]:W-A-James/c-term-timer.git
cd c-term-timer
cmake -B build
cmake --build buildMain binary will live at build/term-timer.
Usage:
term-timer [<hours>h] [<minutes>m] [<seconds>s?]
Must specify at least one of [<hours>h], [<minutes>m], [<seconds>s?]
If only one argument is specified with no suffix, defaults to interpreting as seconds
Use Ctrl-C or Ctrl-Q to close the timer.
$ term-timer 5m
╭──────────╮
│ 00:05:00 |
╰──────────╯
After building the binaries in the installation step, the test binaries are as follows:
build/clock.testbuild/duration-parser.test