Thank you.
https://github.com/k4rthik/git-cal/commit/2c6b50b57fa818d943...
should solve it partially (exit(1) if tput colors < 256)
[1] The proper way is to use terminfo to output the escape sequences for you. See http://perldoc.perl.org/Term/Cap.html for how to do this with standard Perl. EDIT: I can't get this to work—Seems Perl has poor terminfo support. :-( "tput setaf 10" is the correct way from sh.