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 blue\n";

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."

Attachment: COLORPATCH.diff
Description: Binary data

_______________________________________________
kc mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/kc

Reply via email to