Re: Update Screen In Dos

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu