Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!wrdis01!gatech!usenet.ins.cwru.edu!po.CWRU.Edu!sms16 From: sms16@po.CWRU.Edu (Steven M. Schwartz) Newsgroups: comp.lang.pascal Subject: Re: EGA/VGA mono detection Message-ID: <1991Apr29.045540.19671@usenet.ins.cwru.edu> Date: 29 Apr 91 04:55:40 GMT References: <6119@gara.une.oz.au> Sender: news@usenet.ins.cwru.edu Reply-To: sms16@po.CWRU.Edu (Steven M. Schwartz) Organization: Case Western Reserve University, Cleveland, OH (USA) Lines: 19 Nntp-Posting-Host: cwns1.ins.cwru.edu In a previous article, ijohnson@gara.une.oz.au (Ian Johnson) says: >Is there any way of detecting, in graphics with Turbo Pascal, whether the >EGA/VGA monitor is color or monochrome? Ian, Interrupt 10h reports the current video adapter. Before the interrupt is called the AH register gets set to 0Fh. The interrupt stores the screen width in AH, the video mode in AL, and the video page number in BH. The video mode is then determined through examination of AL. The following numbers show the video type for each value: CGA = 1..6 EGA = 13..16 Mono = 7 Hope that is of some help. Steve