🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Checking for ANSI.SYS...

#1350
From: Austin H. Ziegler, III
Date: Tue, 27 Feb 1990 00:40
31 lines
1866 bytes
	A couple of days ago, I posted requests for methods to check for
ANSI.SYS.  I have received many useful tips on how to send ANSI control
sequences to check to see if ANSI.SYS or a variant was installed.
	The general method sent was:

		send <ESC>[2J
		send <ESC>[6n
		wait for the string <ESC>[01;01;R

	Now, if I set the foreground and background to the same color
(probably black on black, but...) then if ANSI.SYS is not loaded, there
will be no clutter on the screen.  However, if at all possible, I would
prefer checking low memory so that there is no screen color.  Due to the
type of program that I'm writing (a command-line utility), it would not be
good to clutter the screen with ANSI-test sequences, nor should I clear the
screen with <ESC>[2J.

	Does anyone know a way to quickly check low memory to see if
ANSI.SYS or a variant is loaded?  (As usual, C or Pascal of any flavor
preferred, but BASIC will do...)

thanks in advance,
austin
--
+--------------------------+-----------------------+-----------------------+
| Austin Herbert Ziegler   |  austin@ bucsf.bu.edu | "The Hammer has       |
| 700 Commonealth Box 2094 |          bucsb.bu.edu |  fallen."             |
| Boston, MA  02215        |         buengf.bu.edu |   -- Dan Forrester    |
| (617) 375-8272           | engc8vc@buacca.bu.edu | _Lucifer's Hammer_    |
+--------------------------+-----------------------+-----------------------+
Technical Details
Message-ID: <AUSTIN.90Feb26194024@bucsf.bu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!bu.edu!bucsf.bu.edu!austin

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!bu.edu!bucsf.bu.edu!austin
From: austin@bucsf.bu.edu (Austin H. Ziegler, III)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Checking for ANSI.SYS...
Message-ID: <AUSTIN.90Feb26194024@bucsf.bu.edu>
Date: 27 Feb 90 00:40:24 GMT
Sender: news@bu.edu.bu.edu
Organization: Boston University College of Engineering
Lines: 31