#!/usr/ug/bin/perl5 # vim:fo=croql:cin:com=\:# # use strict; use POSIX qw(strftime); use vars qw($BON $BOFF $CEOL); exit if $ENV{'GALE_CATEGORY'} =~ m-/ping$|/ping:-; $BON= `tput md 2>/dev/null`; if ($? == 0) { $BOFF= `tput me`; } else { $BON= `tput bold`; $BOFF= `tput sgr0`; } $CEOL= `tput el`; if ($ENV{'GALE_CATEGORY'} =~ m-/receipt$|/receipt:-) { &printReceipt; } else { &printMessage; } sub printReceipt { #*