ijohnson@gara.une.oz.au (Ian Johnson) (04/29/91)
Is there any way of detecting, in graphics with Turbo Pascal, whether the EGA/VGA monitor is color or monochrome? Thanks in advance Ian. email: ijohnson@gara.une.oz.au
sms16@po.CWRU.Edu (Steven M. Schwartz) (04/29/91)
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