🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1418

Re: How to find ANSI...

#1418
From: Joseph D. Shapiro
Date: Wed, 28 Feb 1990 17:41
18 lines
1411 bytes
In article <AUSTIN.90Feb23155939@bucsf.bu.edu> 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
Technical Details
Message-ID: <10446@bunker.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!yale!bunker!shap
References: <AUSTIN.90Feb23155939@bucsf.bu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <AUSTIN.90Feb23155939@bucsf.bu.edu>
Reply-To: shap@clunker.UUCP (Joseph D. Shapiro)
Organization: ISC-Bunker Ramo, an Olivetti Company, Shelton, Ct
Lines: 18