Weird Color Problem

Dec 26, 2009
36
2
No where
I'm probably doing something wrong, but I can't figure out what it is.

Installed the latest version of TCC 28 and started noticing that when I type the following command, or put it in a batch file:
cls bri whi on [color]

It works exactly as expected when I use any of the available colors

Except for this one:
cls bri whi on blu
Which gives me white text on black background instead of blue

Also, I have at least one batch file which uses 'cls bri whi on blu' and it works correctly, while others give me white text on a black background instead of blue.

Weird.
 
Dec 26, 2009
36
2
No where
Standalone TCC console window.

cls bri whi on red
cls bri whi on gre
cls bri whi on yel
....etc

All work exactly as expected.

cls bri whi on blu - white text on black background instead of blue.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,689
106
Albuquerque, NM
prospero.unm.edu
Have you checked your console palette?

Alt-space, P to open the 'Properties' dialog, then select the 'Colors' tab. About a third of the way down, there's a strip of 16 color boxes. The second one ought to be dark blue, but may have been changed.
 
Dec 26, 2009
36
2
No where
Have you checked your console palette?

Alt-space, P to open the 'Properties' dialog, then select the 'Colors' tab. About a third of the way down, there's a strip of 16 color boxes. The second one ought to be dark blue, but may have been changed.
OK. Tried it. Looks OK.

Update: I tried the following:

Open TCC console window
cls bri whi on bri blu (works properly)
cls bri whi on blu (now works properly)

Close TCC console window

Open new TCC console window
cls bri whi on blu (works properly)

So, apparently ........ I "fixed" it ??

Aren't computers fun.
 
Dec 26, 2009
36
2
No where
Update #2

Tried a couple of other batch files that I have sitting around.

cls bri whi on blu
cls bri yel on blu

- results in black background, not blue.

%#$@!!
 
Dec 26, 2009
36
2
No where
I'm not sure exactly what you mean by "separate shortcut". I don't run TCC by navigating to the program directory and clicking on the .exe file. I click on a batch file, which launches TCC and executes the batch file. Or, I right click on a directory and select "TCC Prompt Here" which opens a TCC console window in the directory so I can do whatever.

Anyway, after playing around more with backups, here is what I found:

Reverted my computer to a backup that was running TCC 28.00.11 x64 and it works exactly as expected. cls bri whi on blue results in white text on a blue background.

Although it is still possible that there is some weird mis-configuration on my end, it does appear that somewhere between 28.00.11 and the current version, a small bug was introduced.

This is purely a minor cosmetic issue and it does not affect the actual operation of the program in any way. This is not a complaint. Just a bug report.
 

rconn

Administrator
Staff member
May 14, 2008
12,557
167
TCC does not control displaying characters and colors; that's 100% Windows. (And nothing relevant changed between 28.00.11 and 28.01.14.)

This is most likely a console configuration issue (i.e., using the new vs. legacy console, or ANSI / non-ANSI).
 
Dec 26, 2009
36
2
No where
>>"This is most likely a console configuration issue (i.e., using the new vs. legacy console, or ANSI / non-ANSI)."

That's the thing -- I haven't changed anything. Everything stayed the same and the only thing that changed was I installed a newer version of TCC.

Oh well. Not a big deal. For many years I used white text on blue background as my standard for everything. Now I have switched to green on black. Reminds me of my first computer in the 80s that had a monochrome monitor.
 
Aug 23, 2010
688
9
Try this:
1. Close all console windows (even those you don't know about, like GIMP or VS Code).
2. Open registry editor and navigate to HKEY_CURRENT_USER\Console
3. Remove any subkeys that look like paths.
4. Close and relog (or simply reboot).

If you start your batch files from a desktop shortcut (the .lnk file), there could be a separate issue, as those store color palette separately.
 

Similar threads