anarcat
8fec43ef43
Merge pull request #81 from jwilk-forks/comment
...
Fix comment placement
6 years ago
anarcat
577c4ec1b5
Merge pull request #79 from jwilk-forks/indent
...
Makefile: fix uneven indentation
6 years ago
anarcat
601c38c567
Merge pull request #80 from jwilk-forks/pedant
...
Sort #include lines
6 years ago
Jakub Wilk
4c1ee2e66b
Fix comment placement
6 years ago
Jakub Wilk
af41346aa4
Sort #include lines
6 years ago
Jakub Wilk
901ae6801b
Makefile: fix uneven indentation
6 years ago
anarcat
cfd4effa8b
Merge pull request #78 from jwilk-forks/spelling
...
Fix typo
6 years ago
anarcat
2ade059031
Merge pull request #77 from jwilk-forks/indent
...
Fix uneven indentation
6 years ago
anarcat
ab7dc4badd
Merge pull request #74 from SanchithHegde/master
...
Fixes AM/PM displayed incorrectly for 12:00 - 12:59
6 years ago
Jakub Wilk
b20b5c9158
Fix typo
6 years ago
Jakub Wilk
aab718ad40
Fix uneven indentation
6 years ago
Jakub Wilk
e20a6efebd
Update vim modelines to better match reality
6 years ago
Sanchith Hegde
f2a79ca51f
Fixes AM/PM displayed incorrectly for 12:00 - 12:59
7 years ago
François Revol
0cec6b0993
Makefile: also check for ncurses6
...
Note some cross-compilers might not install the ncurses config scripts
and only the pkg-config files, but at least the atari SDK from NS does.
For others it might be required to check for the .pc files first.
7 years ago
François Revol
c26a221e32
Makefile: make all variables overridable
...
For cross-compilation and some platforms we want to change the binary
name or install paths.
7 years ago
David Demelier
767f4b948f
Avoid allocating on the heap
...
The ttyclock structure is small enough to be kept on the stack rather
than allocating it on the heap.
7 years ago
Slackhead
75ca275408
Fix mixed indents and trailing whitespace ( #56 )
...
This fixes the tabs and trailing whitespace.
I've set a vim modeline to expand tabs and set tab width to 4 spaces.
8 years ago
anarcat
ab121b53e1
Merge pull request #55 from slackhead/ampm-fix
...
AM/PM Fix
8 years ago
Slackhead
b798e9cf24
AM/PM Fix
8 years ago
anarcat
059a7c5291
Merge pull request #53 from livibetter/LICENSE
...
add a clearly stated LICENSE file
8 years ago
Yu-Jie Lin
94c2d0c5b7
update and fix copyright years
8 years ago
Yu-Jie Lin
9437ce16c9
add a clearly stated LICENSE file
...
The text is copied from ttyclock.c, only:
- rewrapped
- replaced the copyright character with (c)
- updated copyright years and add one for contributors
See also: GH #52
8 years ago
anarcat
12aa31d361
Merge pull request #47 from vaygr/date-box-fix
...
Do not display date box when '-D' flag is provided
8 years ago
Vlad Glagolev
b146b15156
Do not display date box when '-D' flag is provided
8 years ago
anarcat
f8fc77cc89
Merge pull request #46 from EdwardBetts/spelling
...
correct spelling mistake
9 years ago
Edward Betts
a309967119
correct spelling mistake
9 years ago
Antoine Beaupré
8868f3ed23
append to compile flags instead of overwriting
...
CFLAGS and LDFLAGS may be passed in by an upstream build system. we
want to make sure we absolutely add our dependency flags otherwise
stuff like hardening flags will break the build
Closes : #29
9 years ago
xorg62
e66826169f
Merge pull request #43 from anarcat/make-fixes
...
another shot at fixing buildchain
9 years ago
Antoine Beaupré
48707576f3
another shot at fixing buildchain
...
previous Makefile changes didn't actually work for pkg-config. they
were taken from the Debian package, which operated differently.
furthermore, the ncurses5-config lines were incorrect: they were using
both ncursesw and ncurses and would fail if --libdir was
empty. instead, we use the more proper --cflags and --libs that all do
the right thing.
this should, arguably, only be done with pkg-config, but i didn't want
to introduce an additional dependency.
See: #38
9 years ago
xorg62
9fe5fe3eac
Merge pull request #41 from anarcat/fixdelay
...
set time structure at the right moment
9 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
xorg62
3fe38e9661
Merge pull request #39 from anarcat/non-silent
...
do not silence compiler flags
9 years ago
Antoine Beaupré
a687384dc5
do not silence compiler flags
...
this creates warnings in Debian, as there are checks to see if we use proper hardening flags, for example.
besides, we *almost* show all the tags in the compile rule, might as well not silence it
9 years ago
xorg62
299450c209
Merge pull request #38 from anarcat/pkg-config
...
unbreak building with arbitrary ncurses version using pkg-config
9 years ago
Antoine Beaupré
40af1c013f
unbreak building with arbitrary ncurses version using pkg-config
...
Closes : #31
9 years ago
xorg62
516afbf9f9
Merge pull request #25 from jcvernaleo/master
...
Allow C and LD flags to be overwritten.
11 years ago
xorg62
9f75de2af9
Merge pull request #24 from wessels/master
...
Offered as a simpler fix for making the seconds colon blink.
11 years ago
John C. Vernaleo
5f138c54be
Allow C and LD flags to be overwritten.
...
This is useful for build on systems like bitrig and openbsd.
11 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
Martin Duquesnoy
4e6b4cae8a
Merge pull request #19 from cgie/master
...
Several features
13 years ago
Christian Gießen
c5a4dc0bce
fixed README
13 years ago
Christian Gießen
6fc660a23e
removed a duplicate line in the usage text
13 years ago
Christian Gießen
fbb26382af
fixed Makefile to work with ncurses and ncursesw
13 years ago
Christian Gießen
e0f773024f
merged carlas/greys fork
13 years ago
Christian Gießen
cbe1f3a838
merged with xorg62's current version
13 years ago
Grey
4a34f356c6
Updated README to reflect delay changes
13 years ago
Grey
35eab7950d
Implemented delay in seconds for lower CPU usage
13 years ago
Martin Duquesnoy
d9875dca06
Merge pull request #17 from paultag/paultag/bugfix/fix-optparse-format
...
Add the f argument to optparse to avoid segfault.
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