[Kc] Term::ANSIColor color localization patch
David Nicol
davidnicol at gmail.com
Fri Sep 21 09:03:06 PDT 2007
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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: COLORPATCH.diff
Type: application/octet-stream
Size: 5631 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/kc/attachments/20070921/baf70aaf/attachment.obj
More information about the kc
mailing list