🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #812

Re: Detecting ANSI.SYS (was: Re: DOS text attributes)

#812
From: Carl Harris
Date: Sat, 12 Dec 1992 14:36
15 lines
1142 bytes
wizard@archtwr.tower.nullnet.fi (Mikko H{nninen) writes:
> I know I can detect ANSI driver by comparing an interrupt's and the CON
> device's segment addresses (I think). But is this reliable? Are there any
> other programs aside from ANSI that act as the CON device?

The standard method for detecting the presence of the ANSI driver is to
send a DSR (Device Status Report) sequence to the console.  If the
driver is present, it will respond with a CPR (Cursor Position Report) via
standard input.

-- 
Carl Harris                | program (tv).  To engage in an activity
Virginia Tech              | similar to banging one's head against a wall 
ceharris@csugrad.cs.vt.edu | but with fewer opportunities for reward.
...
Technical Details
Message-ID: <Bz5Hx0.7FJ@csugrad.cs.vt.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!vtserf!csugrad!ceharris
References: <1992Dec11.204520.143@archtwr.tower.nullnet.fi>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!vtserf!csugrad!ceharris
From: ceharris@csugrad.cs.vt.edu (Carl Harris)
Newsgroups: alt.msdos.programmer
Subject: Re: Detecting ANSI.SYS (was: Re: DOS text attributes)
Message-ID: <Bz5Hx0.7FJ@csugrad.cs.vt.edu>
Date: 12 Dec 92 14:36:35 GMT
References: <1992Dec11.204520.143@archtwr.tower.nullnet.fi>
Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
Lines: 15