https://github.com/chicks-net/curses-clock
A clock based on curses in C
https://github.com/chicks-net/curses-clock
c clock curses
Last synced: 3 months ago
JSON representation
A clock based on curses in C
- Host: GitHub
- URL: https://github.com/chicks-net/curses-clock
- Owner: chicks-net
- License: gpl-2.0
- Created: 2013-07-21T04:08:57.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2018-11-16T12:59:55.000Z (over 6 years ago)
- Last Synced: 2025-01-25T20:44:05.119Z (4 months ago)
- Topics: c, clock, curses
- Language: C
- Size: 56.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
curses-clock
============[](https://github.com/ellerbrock/open-source-badges/)
[](https://github.com/chicks-net/curses-clock/blob/master/LICENSE)
[](https://github.com/chicks-net/curses-clock/graphs/commit-activity)A clock based on curses in C that uses fixed-sized fonts (PSF) to allow varied displays.

Usage
-----Run `make` to generate `cclock` and then run `./cclock`. Enjoy.
Inspirations
------------* tablespoon's clock written with tput in shell script
* George CarlinBuild Requirements
------------------* ncurses headers and libs (package libncurses5-dev in debian, ncurses-devel in RH)
* glib-json (package libjson-glib-dev in debian, json-glib-devel in RH)TODO
----* BUG: handle window resizing
* BUG: segfaults on Fedora
* check for json config in home directory, read it in
* write out default config on request
* error handling for unknown timezonesAcknowledgements
----------------
* https://github.com/talamus/rw-psf provided the best way to learn how to parse PSF that I have found yet. Perl++ http://linuxgazette.net/91/loozzr.html is also informative.
* http://stackoverflow.com/questions/111928/is-there-a-printf-converter-to-print-in-binary-format made a good starting place for my byte_to_binary()
* http://www.gtkforums.com/viewtopic.php?f=3&t=178486 for how to get time out of glib