Skip to content

W-A-James/c-term-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Term Timer C/C++ CI

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

Features

  • Simple terminal-based UI
  • Alarm sound using CSFML

Dependencies

  • libsfml-dev 2.6.1

Compiling

git clone [email protected]:W-A-James/c-term-timer.git
cd c-term-timer
cmake -B build
cmake --build build

Main binary will live at build/term-timer.

Usage

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.

Example

$ term-timer 5m
╭──────────╮
│ 00:05:00 |
╰──────────╯

Tests

After building the binaries in the installation step, the test binaries are as follows:

  • build/clock.test
  • build/duration-parser.test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published