1. Update Screen In Dos
- Posted by Andy <videogamefreak101 at hotm?il.co?> Aug 06, 2007
- 550 views
How do you update the screen while making DOS programs? I know that using the win32lib you can use repaintWindow() command, but DOS dosen't have luxury of the sort. So is there an easy to update the screen in DOS mode? An example of the code needed would be nice, thanks for the help. P.S. Sorry for making two messages in a short time, but I just wanted to get them answered as soon as possible.
2. Re: Update Screen In Dos
- Posted by don cole <doncole at pac?ell.?et> Aug 06, 2007
- 523 views
Andy wrote: > > How do you update the screen while making DOS programs? I know that using the > win32lib you can use repaintWindow() command, but DOS dosen't have luxury of > the sort. So is there an easy to update the screen in DOS mode? An example of > the code needed would be nice, thanks for the help. > > P.S. Sorry for making two messages in a short time, but I just wanted to get > them answered as soon as possible. Hello Andy, I do a lot of DOS programing. To change screens use,
set_active_page(0)--on my computer I can get up to 4 screens --(0 thru 3), see graphics.e to see may screens --or MODES you and you computer are allowed to use set_display_page(0)-- this is the page we are NOW looking at. -- ditto there are 4 MODES avaible here. --So now let's go: set_display_page(0) --now everyone is looking at page 0 set_active_page(1) --here we get sneaky puts(1, "***********hello world,whatever &"\n") -- now all that is on page 1. But we ,the lookers, don't see this -- because we are3 looking at page 0. --Now that we have finished UPDATING we can, set_display_page(1)-- now everybody is looking looking at page 1 --leaving page 0 free for further tampering with set_active_page(0)--I should point out that when you, puts(1,"whatever"&"\n")--1 is the last active page you selected.
To further clarify and clear up any confusion. in the example:
puts(1,"whatever"&"\n")
1 refers to the SCREEN. In this case the last ACTIVE page selected. Hope this helps. Don Cole
3. Re: Update Screen In Dos
- Posted by Andy <videogamefreak101 at hotm?il.c?m> Aug 06, 2007
- 541 views
OK I get it now.
4. Re: Update Screen In Dos
- Posted by "Greg Haberek" <ghaberek at gmail.com> Aug 07, 2007
- 529 views
You need to understand that DOS does not behave like Windows. You (the programmer) are responsible for redrawing the screen whenever your program deems it necessary. There is no built-in mechanism like with Windows. On 8/6/07, Andy <guest at rapideuphoria.com> wrote: > > > posted by: Andy <videogamefreak101 at hotm?il.c?m> > > OK I get it now. > > > >