- May
- 592
- 4
I'm trying to save the current colors, change them temporarily, and change them back, using something like this:
This always produces white on black.
Here's a test:
My workaround for now is that I can restore to standard colors, rather than what was current at the time I save them, with
but what I really want is a way to save and restore the current colors.
Code:
set savecolors=%_fg on %_bg
color (something else)
(do some stuff)
color %savecolors
Here's a test:
Code:
C:\Tv\TV_DATA\Groton> ver
TCC 12.11.69 Windows XP [Version 5.1.2600]
C:\Tv\TV_DATA\Groton> color bri white on green
C:\Tv\TV_DATA\Groton> echo %_fg on %_bg
Whi on Bla
Code:
set savecolors=%@format[02,%@eval[%@option[StdColors]=h]]