05b8ac6c   
   From: jsj@nospambyg.dtu.dk   
      
   "Jim Leonard" wrote in message   
   news:a186b1b0-ec00-4eab-8b0f-22d2c39ce821@56g2000hsm.googlegroups.com...   
   > On Aug 22, 6:51 am, "Schjaer" wrote:   
   >> Hi group   
   >>   
   >> After exiting a DOS program that manipulates the screen colors I   
   >> sometimes   
   >> (but not always) don't get the same colors back that existed before   
   >> invoking   
   >> the program. I have tried to save then restore TextAttr within the   
   >> program   
   >> but that seems to have no effect. I have observed this in both Turbo   
   >> Pascal   
   >> 7.0 and FreePascal. It seems to be a question of sheer luck if the   
   >> original   
   >> screen colors are restored or not at exit. Any suggestions?   
   >   
   > Incorrect colors are the result of MS-DOS painting just the characters   
   > while leaving the color attributes alone.   
      
   But what colors does MS-DOS use to paint the characters?   
      
   >Your DOS program probably   
   > recolors the entire screen, then dumps you at the prompt without   
   > cleaning up.   
      
   No, I save TextAttr upon entry then restore it just before exit.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|