Do not display date box when '-D' flag is provided - tty-clock - port of tty-clock to OpenBSD, with pledge/unveil added as goodie.
(HTM) git clone https://git.drkhsh.at/tty-clock.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit b146b15156e69aef90ba4fa0f4d30cbcfb45a5eb
(DIR) parent f8fc77cc8980665c3dd0a25b8f60da53bffb4505
(HTM) Author: Vlad Glagolev <scm@vaygr.net>
Date: Tue, 31 Oct 2017 16:03:21 -0400
Do not display date box when '-D' flag is provided
Diffstat:
M ttyclock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/ttyclock.c b/ttyclock.c
@@ -118,7 +118,7 @@ init(void)
ttyclock->geo.x + ttyclock->geo.h - 1,
ttyclock->geo.y + (ttyclock->geo.w / 2) -
(strlen(ttyclock->date.datestr) / 2) - 1);
- if(ttyclock->option.box) {
+ if(ttyclock->option.box && ttyclock->option.date) {
box(ttyclock->datewin, 0, 0);
}
clearok(ttyclock->datewin, True);