Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uwm.edu!ogicse!milton!roger From: roger@wrq.com (Roger Fulton) Newsgroups: comp.os.msdos.programmer Subject: Re: Dual Monitor Switching Message-ID: <18203@milton.u.washington.edu> Date: 11 Mar 91 23:04:13 GMT References: <1991Mar11.172914.4450@engin.umich.edu> Sender: news@milton.u.washington.edu Organization: Walker Richer & Quinn, Inc., Seattle, WA Lines: 31 In article <1991Mar11.172914.4450@engin.umich.edu> pong@caen.engin.umich.edu (Bryan John Jalowitz) writes: > >Hi, >I would like to know how, from within an application, I can switch >monitors in a dual configuration. I would like something similar to >"mode mono" vs. "mode co80", but that does not clear the display. > >More specifically, I am using a VGA/HERC dual monitor configuration, >and I would like to be able to route text/graphics to one or the other >display systems. I know about setting the mode with int 10h func 0, >but there appears to be more to it than that. That doesn't "switch" the ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >video bios' notion of the current display. Yes, there is. In addition to setting the video mode, you need to also update the equipment flag at 0040:0010 appropriately: xx10xxxx for color, xx11xxxx for mono (where 'x' means leave it alone). Also, you should account for the fact that color systems have a different maximum cursor line count than mono systems (so you should save and restore the cursor when changing video modes). . -- Roger Fulton roger@wrq.com