1.

Solve : Synchronize colors fullscreen/cmd prompt window?

Answer»

I tried this question in the MS DOS forum with null reaction, so maybe I'm better off here.

I am running a DOS program which changes some of the basic 16 screen colors by calling int 10h ax=1010h to set the DAC registers for VGA.
The program works correctly under pure DOS.
In a command prompt window or fullscreen command prompt under W95/W98SE the wanted colors are displayed correctly.

 Under W2000/WinXP it only changes the colors when RUN in fullscreen (Alt-return). When returning from fullscreen to windowed command prompt the changed colors are not transferred to the window.
 How can I make the command window under W2000/WinXP honor the VGA DAC-registers set by my program?
 
Thanks for any hint.
 
jamaHave you tried using Dosbox(Click)?I believe it's because a minimised window is displayed by Windows properties not command / DOS in full screen mode....think about it.

patio.  8-) Quote

Have you tried using Dosbox(Click)?

Thanks, Raptor, for the question/advice, I'll give it a try personally. On the other hand my program is distributed
as freeware via Simtel and a couple of other channels. I'd rather not force POTENTIAL users to implement
yet another resource to be able to run my program.

Thanks anyway,

jama Quote
I believe it's because a minimised window is displayed by Windows properties not command / DOS in full screen mode....think about it.

patio.  8-)

Thanks patio,
I'm aware of that. The command window in W2000/WinXP allows via right clicking its titlebar to change the default colors used for this window. These settings are stored in the registry, from where they are fetched  when a command window is OPENED. The problem is that my program attempts to set its own (user chosen) private colors (color content RGB-values). This means that I'm
not helped by any pre-defined colors since I cannot know in advance the colors a potential user is going to use, i.e. the colors are being changed when the window is already open and the program is already running. It looks like the clever Microsoft programmers did not synchronize the colors used in the window with the colors set in the VGA DAC-registers by int 10h ax=1010h.
 I'm looking for a way to perform exactly that synchronization in W2000/WinXP. In W9x it already worked PERFECTLY.

Cheers,
jama




 


Discussion

No Comment Found