On Fri, Jan 25, 2008 at 10:33:21PM -0000, Mark Stosberg wrote: > This well-commented perl function "is_interactive" may be of interest > when writing code that decides when to show color and use a $PAGER by > default and when to not. It is what the 'ack' utility uses:
The problem is that it's never safe to show color and use a $PAGER by default at the same time, because color causes many popular pagers to barf by default. So it's one or the other, not both. -- David Roundy Department of Physics Oregon State University _______________________________________________ darcs-devel mailing list darcs-devel@darcs.net http://lists.osuosl.org/mailman/listinfo/darcs-devel