Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!pasteur!miro.Berkeley.EDU!foote From: foote@miro.Berkeley.EDU (Bill Foote) Newsgroups: comp.sys.ibm.pc Subject: How can I use two monitors under Microsoft C 5.1? Message-ID: <14221@pasteur.Berkeley.EDU> Date: 28 May 89 03:34:05 GMT Sender: news@pasteur.Berkeley.EDU Reply-To: foote@miro.Berkeley.EDU (Bill Foote) Organization: University of California at Berkeley Lines: 36 I have two monitors hooked up to my PC (one is a CGA, the other a Hercules-compatable monochrome adaptor). I'd like to be able to write an application that does text input/output on one screen, while generating graphics on the other. Is there some way that I can fool Microsoft C 5.1 into letting me do this? I've tried this code (running the program after doing a "mode co80"): _setvideomode(some graphics mode); draw some lines; system("mode mono"); draw some more lines; printf("This is where the problem is\n"); This works, i.e. the graphics go to the CGA, and the text goes to the MGA, _BUT_ the sync to the color monitor get all screwed up as soon as I start sending text to stdout. I assume that the graphics library routines are intecepting my text output and trying to put them on the CGA screen somehow. I've tried a couple of variations on this scheme, with no luck. Currently I'm using my own graphics routines that directly access the hardware, but it would sure be nice if I could use MSC's nice library routines. Any suggestions would be appreciated. Thanks in advance, Bill Foote foote@miro.Berkeley.EDU ...!uunet!ucbvax!miro!foote