Subject: | keep track of state towards a local RESET |
RESET sets back to black on white. It would be nice to be
able to stack what the color set currently is, so if my output
is all on green background, I could do something like
print PUSHCOLOR ON_MAGENTA;
warn "this line will be in magenta";
print POPCOLOR;
warn "now we are back to what we were before";
and "now we are back to what we were before at eval line 4"
would be on green instead of on white.
I think this could be accomplished easily by appending everything to
a string that is reset to '' on RESET, and stored or retrieved
to an array on PUSHCOLOR and POPCOLOR.