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 1,166 of 2,978   
   Samuel Fleischer to All   
   regain graphic-video mode when CRT-app i   
   08 Dec 04 21:21:18   
   
   From: LiveSucks@hotmail.com   
      
   Hello!   
      
   I've written some application for real-DOS-platform in BP7,   
   using the units CRT (GoToXY, TextColor, NormVideo) and DOS.   
   When I run the compiled binary e.g. from DOS 6.22, there is   
   a problem:   
      
   If the shell runs in some graphic-mode (e.g. ESC[=18h, that   
   means 640 x 480, 16 colours, graphic), the binary/program   
   forces a change of the vido-mode to 80x25, coloured,Text.   
   But afterwards, when the program is finished, the video-mode   
   will not be restored to the former graphic-mode.   
      
   How can I make a text-mode-program restore the previous   
   video-mode (not the screen-content) on exit even if that was   
   some graphic-mode?   
      
   Thanks   
      
   Sam   
      
   --- 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