the attached allows color tags to stack up, so instead of
resetting to nothing,
one can have a color set, as long as it was set like so
use Term::ANSIColor ':pushpop';
print PUSHCOLOR(RED.ON_BLUE),"this will be in red
on bluen";
then give
print LOCALCOLOR(BLUE.ON_RED,"yatta ta da, ta
da");
and due to the manipulation of Term::ANSIColor::COLORSTACK
by
the new features in the patch, the localcolor text is in the
localcolor but
afterwards
print "this will again be red on blue with no
additional effort."
_______________________________________________
kc mailing list
kc pm.org
http://mail.pm
.org/mailman/listinfo/kc
|