add toggle 12h formar - tty-clock - port of tty-clock to OpenBSD, with pledge/unveil added as goodie.
HTML git clone https://git.drkhsh.at/tty-clock.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 79e43bfa9d27ee7ef085b49866a48c1da018cb1e
DIR parent 91b0043f69f76608b32d5a8ba3cf7780a9520908
HTML Author: martin <xorg62@gmail.com>
Date: Thu, 12 Jun 2008 17:23:55 +0200
add toggle 12h formar
Diffstat:
M clock.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
DIR diff --git a/clock.c b/clock.c
@@ -249,6 +249,16 @@ check_key(void) {
enable_sec = 0;
}
break;
+ case 't':
+ case 'T':
+ if(!enable_tw) {
+ clear();
+ enable_tw = 1;
+ } else {
+ clear();
+ enable_tw = 0;
+ }
+ break;
case 'q':
case 'Q':
endwin();
@@ -341,7 +351,7 @@ main(int argc,char **argv) {
exit(EXIT_SUCCESS);
break;
case 'v':
- printf("TTY-Clock v0.1alpha2\n");
+ printf("TTY-Clock v0.1.4\n");
exit(EXIT_SUCCESS);
break;
case 'x':