Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!uflorida!haven!adm!xadmx!garnett%A.CS.OKSTATE.EDU%CUNYVM.CUNY.EDU@cunyvm.cuny.edu From: garnett%A.CS.OKSTATE.EDU%CUNYVM.CUNY.EDU@cunyvm.cu (John Garnett) Newsgroups: comp.lang.pascal Subject: Re: Detecting EGA/VGA presence Message-ID: <17863@adm.BRL.MIL> Date: 17 Dec 88 00:42:30 GMT Sender: news@adm.BRL.MIL Lines: 18 From article <17772@adm.BRL.MIL>, by jc58+@andrew.cmu.edu (Johnny J. Chin): > > Does anyone out there know how to detect to see if there is an EGA or VGA > adapter present in a computer? > > How about CGA, Monochrome, or Hercules? Does determining the present video > mode tell me enough to assume that one of these display adapters are present? If you are using Borland's Turbo Pascal 5.0 (4.0 too?) or Turbo C 1.5+ you can use the Borland Graphics Interface (BGI) to automatically detect what type of video adapter is present. I've found the BGI to very time saving. You can write one program that will work with almost any video adapter / monitor combination. You don't even have to bother with writing different segments of code to deal with different monitors. John Garnett Computing and Information Sciences Oklahoma State University Email: garnett@a.cs.okstate.edu Stillwater, Oklahoma