[comp.sys.ibm.pc] EGA card display blues

lewis@tyler.cs.unc.edu (Jeffrey Lewis) (10/27/88)

I wrote a short Turbo Pascal program to change the default color
of my EGA screen, so I could work under DOS in other than white on
black.  It uses the TextColor and TextBackground functions to set
the screen to the desired color, then exits.  This would hopefully
leave the screen the way I want it, but on my Zenith EGA card, the
colors get set back to white on black when the program exits.  I've
gotten this to work on a Paradise EGA, Paradise Autoswitch EGA+, and
the Zenith z-449(?) VGA card.  

Can anybody tell me why this same procedure doesn't work on my EGA?
Will you tell me? :-)  Educated guesses are welcome.  Is there a more
direct way to do this?  Are there particular registers on the card
which store this color information, that I could write to directly?
Any solutions in assembler, C, Pascal, or Prolog (all Borland) would
be nice.

Thanks in advance.

-----
                              | "Outside of a dog, a book is man's
Jeff Lewis                    |  best friend -- inside of a dog, 
ARPA: lewis@cs.unc.edu        |  it's too dark to read."