mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 14:59:20 +02:00
Mark today in bold iff "remind -c" color output is enabled.
This commit is contained in:
@@ -20,6 +20,9 @@ CHANGES TO REMIND
|
||||
remind and rem2ps executables. Use "make install-stripped" if you want
|
||||
them stripped.
|
||||
|
||||
- CHANGE: remind: "remind -c" highlights today's date in bold, if
|
||||
colors are enabled.
|
||||
|
||||
- DOCUMENTATION FIX: Document behavior of DO and filedir() with respect
|
||||
to symbolic links.
|
||||
|
||||
|
||||
@@ -919,11 +919,11 @@ static void DoCalendarOneWeek(int nleft)
|
||||
}
|
||||
}
|
||||
if (OrigJul+i == RealToday) {
|
||||
if (isatty(STDOUT_FILENO)) {
|
||||
if (UseVTColors) {
|
||||
printf("\x1B[1m"); /* Bold */
|
||||
}
|
||||
PrintLeft(buf, ColSpaces-1, '*');
|
||||
if (isatty(STDOUT_FILENO)) {
|
||||
if (UseVTColors) {
|
||||
printf("\x1B[0m"); /* Normal */
|
||||
}
|
||||
putchar(' ');
|
||||
@@ -1141,11 +1141,11 @@ static int WriteCalendarRow(void)
|
||||
}
|
||||
}
|
||||
if (Julian(y, m, d+i-wd) == RealToday) {
|
||||
if (isatty(STDOUT_FILENO)) {
|
||||
if (UseVTColors) {
|
||||
printf("\x1B[1m"); /* Bold */
|
||||
}
|
||||
PrintLeft(buf, ColSpaces-1, '*');
|
||||
if (isatty(STDOUT_FILENO)) {
|
||||
if (UseVTColors) {
|
||||
printf("\x1B[0m"); /* Normal */
|
||||
}
|
||||
putchar(' ');
|
||||
|
||||
Reference in New Issue
Block a user