mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Make today's date bold in -c mode.
This commit is contained in:
@@ -918,10 +918,14 @@ static void DoCalendarOneWeek(int nleft)
|
||||
snprintf(buf, sizeof(buf), "%d %s ", d, get_month_abbrev(mon));
|
||||
}
|
||||
}
|
||||
if (OrigJul+i == RealToday)
|
||||
PrintLeft(buf, ColSpaces, '*');
|
||||
else
|
||||
if (OrigJul+i == RealToday) {
|
||||
printf("\x1B[1m"); /* Bold */
|
||||
PrintLeft(buf, ColSpaces-1, '*');
|
||||
printf("\x1B[0m"); /* Normal */
|
||||
putchar(' ');
|
||||
} else {
|
||||
PrintLeft(buf, ColSpaces, ' ');
|
||||
}
|
||||
gon();
|
||||
DRAW(tb);
|
||||
goff();
|
||||
@@ -1133,7 +1137,9 @@ static int WriteCalendarRow(void)
|
||||
}
|
||||
}
|
||||
if (Julian(y, m, d+i-wd) == RealToday) {
|
||||
printf("\x1B[1m"); /* Bold */
|
||||
PrintLeft(buf, ColSpaces-1, '*');
|
||||
printf("\x1B[0m"); /* Normal */
|
||||
putchar(' ');
|
||||
} else {
|
||||
PrintLeft(buf, ColSpaces, ' ');
|
||||
|
||||
Reference in New Issue
Block a user