Calling init_color() resets the console font in Windows XP.
Logged In: YES
Yes it does. Unfortunately, the only way I know of to set the colors in the Win32 console is to use an undocumented call that sets both the colors and the font at the same time, along with several other attributes. And since I don't know how to get the _current_ console font (can anyone help me out there?) to pass to this call, I use the default font (and colors) as specified in the registry.
Logged In: NO
Do this before calling WM_SETCONSOLEINFO
console_info.FontSize.X = -1;
console_info.FontSize.Y = -1;
console_info.FontFamily = -1;
console_info.FontWeight = -1;
console_info.FaceName = L'\0';
(-1) simply means to keep the current settings. (Tested on WinXP)
Incidentally, setting -1 to other parameters will fix the fullscreen problems as well.
Thanks... but... no, that doesn't quite work right, either. After the first time (which was OK), I'm seeing the window set to the 4x6 raster font every time, even after exiting and restarting the command window.
If no one has any better ideas, I'm reluctantly marking this "Won't Fix".
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.