| ffe1d30b | 21-Feb-2021 |
Aaron LI <aly@aaronly.me> |
grdc(6): Add '-t' option to show time in 12-hour format
Partially based on FreeBSD's implementation (revision 112749). But I moved the AM/PM mark to the upper-left corner instead of the bottom-righ
grdc(6): Add '-t' option to show time in 12-hour format
Partially based on FreeBSD's implementation (revision 112749). But I moved the AM/PM mark to the upper-left corner instead of the bottom-right corner as in FreeBSD, because the mark in the bottom-right corner would be flushed by scrolling.
In addition, improve the determination of AM/PM mark, including: 00:mm -> 12:mm AM 12:mm -> 12:mm PM
show more ...
|
| 6159ff08 | 21-Feb-2021 |
Aaron LI <aly@aaronly.me> |
grdc(6): Improve scrolling timestamp precisions
Use clock_gettime() to obtain the current time with higher precision, which is used to improve the scrolling timestamp, trying to make the scrolling e
grdc(6): Improve scrolling timestamp precisions
Use clock_gettime() to obtain the current time with higher precision, which is used to improve the scrolling timestamp, trying to make the scrolling end on the integral seconds.
Inspired by OpenBSD's implementation.
show more ...
|
| 8f2695f2 | 21-Feb-2021 |
Aaron LI <aly@aaronly.me> |
grdc(6): Allow 'q' to quit immediately
Add support to allow pressing 'q' to quit immediately.
Partially based on OpenBSD's implementation: https://github.com/openbsd/src/commit/8ca82b000914eb1e6f45
grdc(6): Allow 'q' to quit immediately
Add support to allow pressing 'q' to quit immediately.
Partially based on OpenBSD's implementation: https://github.com/openbsd/src/commit/8ca82b000914eb1e6f45d22092c9358df4233247
show more ...
|
| 9f62ef8c | 21-Feb-2021 |
Aaron LI <aly@aaronly.me> |
grdc(6): Improve handling of long scroll delays
Add the scroll delay to the current time, so that the finally showed time matches the real current time.
In addition, skip nanosleep() if the sleep i
grdc(6): Improve handling of long scroll delays
Add the scroll delay to the current time, so that the finally showed time matches the real current time.
In addition, skip nanosleep() if the sleep interval is negative.
show more ...
|