foote@miro.Berkeley.EDU (Bill Foote) (05/28/89)
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