home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,683 of 2,978   
   Marco van de Voort to Schjaer   
   Re: Correct screen colors not restored a   
   28 Aug 08 14:57:05   
   
   From: marcov@stack.nl   
      
   On 2008-08-28, Schjaer  wrote:   
   >>> 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?   
      
   As far as I can remember, it uses some attribute to fill new lines when the   
   screen scrolls up, and just prints characters without changing the attribute   
   otherwise.   
      
   One of the reasons that in BBS times people often had ansi.sys loaded, and   
   an ansi escape sequence setting the attribute in their (4dos) prompt.   
      
   >>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.   
      
   And what "textattr" is this? The Crt one is just a variable for internal   
   use. Afaik it doesn't correspond with some systemwide value.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca