Here's a simplified batch file to demonstrate the issue
And here's what shows in the TCC tab
Note that even though my colors are set to bright white on blue, the _FG and _BG variables return White on Black. That seems odd.
But everything works fine unless/until I issue a Color command with no parameters.
Per the help file for COLOR:
"If you do not specify a new foreground and background color, COLOR will revert the display colors to those used when TCC was started (for compatibility with CMD)."
It appears that both the first and second set of echo commands display normally.
But if I run the batch file again, then the first echo commands are displayed with White on Black text, but the second set (after another Color command) are displayed as expected with Bright White on Blue text.
Also, if I run a command from the command line after the batch file ends, the output is displayed with White on Black text.
I think I've set the default text properly in the TCC and TCMD options dialogs, but maybe I missed something. Can anyone else duplicate my results with this simple .BTM file?
I realize this simplified example is trivial, but in the "real" script which ran into this issue, I had a situation where I wanted to use Color command to display some text highlighted as bright Yellow on Blue, and then revert back to the default colors when that was done.
Edit: This is not a V36 issue. There is something not quite right with COLOR running the same batch file in TC Version 35. the _FG and _BG variables are correct there. But the display behaves oddly there too.
Code:
@echo off
echo _FG is %_FG
echo _BG is %_BG
echo Hello
color
echo _FG is %_FG
echo _BG is %_BG
echo There
And here's what shows in the TCC tab
Note that even though my colors are set to bright white on blue, the _FG and _BG variables return White on Black. That seems odd.
But everything works fine unless/until I issue a Color command with no parameters.
Per the help file for COLOR:
"If you do not specify a new foreground and background color, COLOR will revert the display colors to those used when TCC was started (for compatibility with CMD)."
It appears that both the first and second set of echo commands display normally.
But if I run the batch file again, then the first echo commands are displayed with White on Black text, but the second set (after another Color command) are displayed as expected with Bright White on Blue text.
Also, if I run a command from the command line after the batch file ends, the output is displayed with White on Black text.
I think I've set the default text properly in the TCC and TCMD options dialogs, but maybe I missed something. Can anyone else duplicate my results with this simple .BTM file?
I realize this simplified example is trivial, but in the "real" script which ran into this issue, I had a situation where I wanted to use Color command to display some text highlighted as bright Yellow on Blue, and then revert back to the default colors when that was done.
Edit: This is not a V36 issue. There is something not quite right with COLOR running the same batch file in TC Version 35. the _FG and _BG variables are correct there. But the display behaves oddly there too.