Skip to content
/ 7clock Public

A terminal clock that uses 7-segment display characters

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

wezm/7clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seven-segment clock (7clock)

7clock.3.mp4

This is a clock for terminals that uses the Unicode seven-segment display characters added in Unicode 13.0. It runs on most commonly used operating systems, including BSD, Linux, macOS, and Windows.

You need to have a font installed that has glyphs for the seven-segment display characters. I use PragmataPro. Another option is Iosevka.

Note: It doesn't actually cycle through colours when it's running, that was just for demonstration in the video.

Building

Build Status

Ensure you have installed the Rust compiler, then:

cargo build --release --locked

Running

After building the binary will be at target/release/7clock.

Run the binary to get the default 12-hour clock without seconds. The following options are supported:

  • -24 — use 24-hour time
  • --colour — set the colour of the clock (see --help for more info)
  • --seconds — display seconds

Credits

  • This clock is partially inspired by clock-tui

Licence

This project is dual licenced under either of:

at your option.