Hi Grant,
> wondering if there is a better way to generate the output from
> the code in a way that respects TERMinal capabilites.
tput setf 4; date; tput sgr0
See terminfo(5).
(BTW, I don't think the question is worthy of TUHS.)
--
Cheers, Ralph.