Analog Terminal Shell Clock

❝ an analog clock for the terminal ❞

analog clock icon

Screenshots πŸ“·

As usual, just a little teaser:

Linux Screenshot
Windows11 Screenshot

Preface and history πŸ“œ

As a clock lover, coming from a clock-making country and because I did not find any decent analog clock for the terminal, I decided to programm one. After realizing that it is really not that simple to draw beautiful lines in the terminal (not using sixel or kitty protocol), I came with a first solution that had somewhat antialiased but ugly, wide and nonreadable clockface-hands. After a second trial, I found the Bresenham line algorithm and even managed to proper antialias it. The culprit was: It was blurry, chunky and was not looking as crisp as I had expected. I guess that in the terminal, my eyes are trained to see pure non graphical information. Well then.

My conclusion after all that messing around is, that using the Bresenham algo is fine (of course it is!) but antialiasing is not. So I can keep the code quite a bit smaller. Is the clock really beautiful? Alas! Probably not – but hopefully useful at least.

Installation πŸ“¦

Linux installation 🐧

Windows installation πŸͺŸοΈ

Tested with Windows 11 only:

Usage πŸ’‘

Disclaimer ⚠️

Don’t use this clock if you plan to fly to the moon. I’m not kidding β€” expect that something might go wrong. Testing all edge cases is not simple.

General Usage πŸ‘‡

Hotkeys ⌨️

These are the only hotkeys needed:

Hint: If a hotkey is not working, this is most likely due to the terminal shell in use and it’s predefined hotkeys.

To Do’s and Niceties for coming versions 🚧

Error reporting πŸ›

manufactured with β™₯ in Switzerland

see also

date(1), cal(1), aclock(1)