🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5460

Re: Detecting the presence of ANSI.SYS

#5460
From: Ross Greenberg
Date: Thu, 30 Jan 1986 14:07
31 lines
1642 bytes
In article <640@steinmetz.UUCP> davidsen@kbsvax.UUCP (Davidsen) writes:
>(Quoting me)
>>
>>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.
>>
>
>
>If you just read cursor position you will get:
>	a) the current position if ANSI.SYS
>	b) nothing is not ANSI.SYS
>Please explain why the cursor needs to be positioned (I may be missing
>something here).
>

The return *may* indicate a {0,0} co-ordinate, even if you're not
running an ANSI emulator. So you positon it away from {0,0}, then
you read it. If you get back *anything* that doesn't match what you
expect, either 1)you're not running ANSI or 2)you have a bug :-)


-- 
------
ross m. greenberg
ihnp4!allegra!phri!sysdes!greenber

[phri rarely makes a guest-account user a spokesperson. Especially not me.]
Technical Details
Message-ID: <2170@phri.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!pesnta!phri!greenber
References: <131@suneast.uucp> <2135@phri.UUCP> <640@steinmetz.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.2 9/18/84; site phri.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!pesnta!phri!greenber
From: greenber@phri.UUCP (Ross Greenberg)
Newsgroups: net.micro.pc,net.micro.att
Subject: Re: Detecting the presence of ANSI.SYS
Message-ID: <2170@phri.UUCP>
Date: Thu, 30-Jan-86 09:07:00 EST
Article-I.D.: phri.2170
Posted: Thu Jan 30 09:07:00 1986
Date-Received: Sat, 1-Feb-86 06:07:28 EST
References: <131@suneast.uucp> <2135@phri.UUCP> <640@steinmetz.UUCP>
Reply-To: greenber@phri.UUCP (Ross Greenberg)
Organization: Public Health Research Inst. (NY, NY)
Lines: 31