Article View: net.micro.pc
Article #5289Re: Detecting the presence of ANSI.SYS
From: Richard Elkins
Date: Mon, 20 Jan 1986 17:42
Date: Mon, 20 Jan 1986 17:42
26 lines
1639 bytes
1639 bytes
In article <2135@phri.UUCP> greenber@phri.UUCP (Ross Greenberg) writes:
>> Does anyone know of a quick and reliable way of detecting
>> whether ANSI.SYS has been installed?
>> --
>
>A quick hack:
> Send the ANSI sequence to position your cursor to some location
> {x,y}.
>
> Send the ANSI sequence to read current cursor poition. If
> they match, you're running ANSI, else you're not.
>
>ross m. greenberg
>ihnp4!allegra!phri!greenber
Better make sure that you weren't already positioned at {x,y}, yes?
Also, if ANSI.SYS is not installed, the results of prompting for a
cursor position report would yield random results.
A "slow hack" (no flames intended):
Make sure that you are in one of the text modes.
With ROM-BIOS, position to {0,0}.
With ANSI.SYS, position to {1,0}.
Use ROM-BIOS to fetch the current cursor coordinates.
If {1,0} then ANSI.SYS is installed; otherwise not.
Technical Details
Message-ID:
<97@ttidcc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!houxm!mhuxt!mhuxr!ulysses!allegra!mit-eddie!think!harvard!cmcl2!philabs!ttidca!ttidcc!elkinsReferences:
<131@suneast.uucp> <2135@phri.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ttidcc.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!houxm!mhuxt!mhuxr!ulysses!allegra!mit-eddie!think!harvard!cmcl2!philabs!ttidca!ttidcc!elkins From: elkins@ttidcc.UUCP (Richard Elkins) Newsgroups: net.micro.pc,net.micro.att Subject: Re: Detecting the presence of ANSI.SYS Message-ID: <97@ttidcc.UUCP> Date: Mon, 20-Jan-86 12:42:31 EST Article-I.D.: ttidcc.97 Posted: Mon Jan 20 12:42:31 1986 Date-Received: Thu, 23-Jan-86 08:26:19 EST References: <131@suneast.uucp> <2135@phri.UUCP> Reply-To: elkins@ttidcb.UUCP (Richard Elkins) Organization: Transaction Technology, Inc. (CitiCorp), Santa Monica Lines: 26