Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!yale!bunker!shap From: shap@bunker.UUCP (Joseph D. Shapiro) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: How to find ANSI... Message-ID: <10446@bunker.UUCP> Date: 28 Feb 90 17:41:08 GMT References: Reply-To: shap@clunker.UUCP (Joseph D. Shapiro) Organization: ISC-Bunker Ramo, an Olivetti Company, Shelton, Ct Lines: 18 In article austin@bucsf.bu.edu (Austin H. Ziegler, III) writes: > > For a program which I'm writing, I want to provide ANSI, BIOS, and >DMA screen support. It is easy to determine whether I should use BIOS or >DMA, but I'm having problems detecting ANSI. If anyone can point me to how >to check for any of the ANSI variants from within a Pascal or C program (I >will be using the Turbo variants, but I feel myself conversant enough with >both to translate to whichever form I will be programming in), I would >greatly appreciate it. How about clearing the screen via BIOS, Homing the cursor via BIOS, clearing the screen with an ANSI sequence, then reading the first screen position via BIOS to see if it is 0x00 or ESC? -- __--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__ Joe Shapiro "My other car is a turbo... ISC-Bunker Ramo ...too." {decvax,yale,philabs,oliveb}!bunker!shap