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,171 of 2,978    |
|    Samuel Fleischer to Wolfgang Ehrhardt    |
|    Re: regain graphic-video mode when CRT-a    |
|    09 Dec 04 20:17:52    |
   
   From: LiveSucks@hotmail.com   
      
   "Wolfgang Ehrhardt" wrote:   
      
   > >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?   
   >   
   > Perhaps something like this will help   
   >   
   > uses   
   > crt;   
   >   
   > var   
   > initmode: integer;   
   >   
   > begin   
   > initmode := lastmode;   
   >   
   > {your code}   
   > {example}   
   > textmode(co80);   
   > readln;   
   >   
   > {Restore initial mode}   
   > textmode(lastmode)   
   > end.   
      
   Thanks for your reply.   
      
   I already tried this.   
   But textmode(lastmode) only restores some text-modes.   
   If display was in graphics-mode before program-start, it   
   will remain in text-mode afterwards.   
   But as said in my other posting: I found a solution which   
   seems to work in DOS 6.22.   
      
   Sincerely   
      
   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