diff --git a/docs/WHATSNEW b/docs/WHATSNEW index e8181c69..98f77445 100644 --- a/docs/WHATSNEW +++ b/docs/WHATSNEW @@ -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. diff --git a/src/calendar.c b/src/calendar.c index 7addc580..21623208 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -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(' ');