home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / alt / msdos / programm / 2938 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  1.1 KB

  1. Path: sparky!uunet!vtserf!csugrad!ceharris
  2. From: ceharris@csugrad.cs.vt.edu (Carl Harris)
  3. Newsgroups: alt.msdos.programmer
  4. Subject: Re: Detecting ANSI.SYS (was: Re: DOS text attributes)
  5. Message-ID: <Bz5Hx0.7FJ@csugrad.cs.vt.edu>
  6. Date: 12 Dec 92 14:36:35 GMT
  7. References: <1992Dec11.204520.143@archtwr.tower.nullnet.fi>
  8. Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
  9. Lines: 15
  10.  
  11. wizard@archtwr.tower.nullnet.fi (Mikko H{nninen) writes:
  12. > I know I can detect ANSI driver by comparing an interrupt's and the CON
  13. > device's segment addresses (I think). But is this reliable? Are there any
  14. > other programs aside from ANSI that act as the CON device?
  15.  
  16. The standard method for detecting the presence of the ANSI driver is to
  17. send a DSR (Device Status Report) sequence to the console.  If the
  18. driver is present, it will respond with a CPR (Cursor Position Report) via
  19. standard input.
  20.  
  21. -- 
  22. Carl Harris                | program (tv).  To engage in an activity
  23. Virginia Tech              | similar to banging one's head against a wall 
  24. ceharris@csugrad.cs.vt.edu | but with fewer opportunities for reward.
  25. ...
  26.