Default $TerminalHyperlinks to 1 if stdout is a TTY.

This commit is contained in:
Dianne Skoll
2026-01-11 10:56:19 -05:00
parent 13fd54b990
commit c43eaec274

View File

@@ -849,6 +849,11 @@ void InitRemind(int argc, char const *argv[])
(void) CalcMinsFromUTC(DSEToday, MinutesPastMidnight(0),
&MinsFromUTC, NULL);
}
/* If stdout is a tty, enable terminal hyperlinks by default */
if (isatty(STDOUT_FILENO)) {
TerminalHyperlinks = 1;
}
}
/***************************************************************/