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:

http://search.cpan.org/src/DCONWAY/IO-Interactive-v0.0.3/lib/IO/Interactive.pm

( ack is a programmer-friendly alternative to "grep" ).

   Mark

----------
title: wish: hide advanced with --help-advanced -> when to use a $PAGER

__________________________________
Darcs bug tracker <[EMAIL PROTECTED]>
<http://bugs.darcs.net/issue610>
__________________________________
_______________________________________________
darcs-devel mailing list
darcs-devel@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-devel

Reply via email to