Vlad Glagolev
b146b15156
Do not display date box when '-D' flag is provided
8 years ago
Antoine Beaupré
59f358fd0f
set time structure at the right moment
...
the way this was working before, we would populate the ttyclock->lt
field *after* fetching the ttyclock->tm structure, which means that
would get the `localtime` of the *previous* iteration. this created a
one second delay in the clock display that was, I believe,
unintentional. this accounts for part of the 2s delay when compared to
other clocks like vtclock or xclock.
Closes : #40
9 years ago
Wessels
c1490a1122
match original indentation
11 years ago
Wessels
e844687f88
Make both colons blink when -s (seconds) enabled and simplify the
...
logic by setting a variable for the dot color.
11 years ago
Christian Gießen
6fc660a23e
removed a duplicate line in the usage text
13 years ago
Grey
35eab7950d
Implemented delay in seconds for lower CPU usage
13 years ago
Paul Tagliamonte
85f41f16a1
Add the f argument to optparse to avoid segfault.
...
Otherwise optarg is set to 0, and we segfault when we
try to strcpy it.
13 years ago
Justin Hammond
6ff646f569
Added utc option
13 years ago
Brian Cain
ad835677bc
(maint) Add blink colon option
...
Prior to this commit, my blinking colon pull req made blinking default.
This commit makes it so that you have to pass in a flag -B to make the
colons blink. This fits with the style of this program.
13 years ago
briancain
aefad0a773
Fix code logic
...
Cleaning up code logic
13 years ago
briancain
61b720558e
Add blinking curser
...
The : now blinks like a real digital clock
13 years ago
Christian Gießen
6e9d5ba273
fixed a typo
13 years ago
Christian Gießen
8eb31f58e5
added bold colors and removed the frame
13 years ago
Clemens Fuchslocher
569ede8659
Added date option.
13 years ago
Carla Valenti
6607fc1a63
* Add the -T <tty> and -n options to facilitate use
...
through inittab(5)
* Update and fix the man page.
* Adjust default date format which was left over from a previous
failed merge.
15 years ago
Carla Valenti
2b4bf01a28
* Fix -f <format> and avoid related SIGSEGV
...
* Remove free'd pointer indirections and move cleanup code to
own fuction.
15 years ago
Skami18
2f2aaa09a0
Added the screensaver mode
15 years ago
Guenter Knauf
df64a7fbb2
Added -d to program usage outout and to README.
16 years ago
Guenter Knauf
4644b63064
Changed default date format.
...
In order to avoid mixing up day and month its better to use %F
(the ISO 8601 date format) to be more international understandable.
16 years ago
Guenter Knauf
da6985db9d
Fixed segfault with now non-working -f option.
...
The commit to add the -d option broke getopt for -f taking an argument.
16 years ago
Benoît Zugmeyer
ab96db2e4e
Correct format specification bug
16 years ago
Benoît Zugmeyer
8502f635db
Press 'b' to switch box on/off
16 years ago
Benoît Zugmeyer
3594e6276b
Add option (-b) to show border, default not shown
16 years ago
Guillaume B
a82fd71690
Added the "-d" option.
...
It provides the user the ability to set the clock redraw frequency at
runtime.
17 years ago
Guillaume B
55038fd7c1
Corrected minor stuff about the animation.
17 years ago
Guillaume B
01c5b4424c
Removed halfdelay and fixed some stuff about the animation.
17 years ago
Martin Duquesnoy
68afd752e3
Re-Add meridiem sign to date string and fix help page
17 years ago
Martin Duquesnoy
a32ee816f7
Improve color switch thing
17 years ago
Martin Duquesnoy
c8593cd0a7
Add keybind [0;7] to change color!
17 years ago
Martin Duquesnoy
695a33a74f
Add -C option to choose clock color
17 years ago
Martin Duquesnoy
f13dc1490d
Remove full argument, fix typo and alloc
17 years ago
Martin Duquesnoy
e7a243b934
Fix typo.
17 years ago
Tom Adams
f119cd20b0
Added option to change date format.
17 years ago
Tom Adams
d2459f135a
Use strftime for the date.
17 years ago
Martin Duquesnoy
742224bb71
Adjuste second mode position when it's switching and if the clock is show out the term
17 years ago
Martin Duquesnoy
abcff61de7
Replace newwin by mvwin & wresize and remove nanosleep (halfdelay() do all)
17 years ago
Martin Duquesnoy
feaaec0f1a
Fix typo
17 years ago
Guillaume B
9bde3b4d6c
Fixed a bug about how the date was displayed.
17 years ago
Guillaume B
453e39a33e
Added some minor changes about optimisation.
17 years ago
Martin Duquesnoy
cea988b3f0
Remove --lock option
17 years ago
Martin Duquesnoy
029bf18cfd
Add rebound option
17 years ago
Martin Duquesnoy
45f1a9df22
Surprise
17 years ago
Martin Duquesnoy
a899c5fd00
Add usleep in the main loop
17 years ago
Martin Duquesnoy
cb7490ea17
Remove useless things
17 years ago
Martin Duquesnoy
ddcbbd1873
TTY-Clock2 beta released
17 years ago