ANSI detection

 BBS: Inland Empire Archive
Date: 07-28-92 (17:09)             Number: 126
From: ARTHUR WARD                  Refer#: NONE
  To: MARVELL EVANS                 Recvd: NO  
Subj: ANSI detection                 Conf: (1) 80xxx

> How would I go about detecting if ANSI.SYS is loaded? I do NOT want > to look in the config.sys file for "ANSI" (this was actually > suggested in another echo). I will post a little of the code that I > have and perhaps you all can help me figure out what I am doing > wrong.... Just send the "Get Cursor" command to the console and turn around to see if there is a key in the keyboard buffer. If so, you have ANSI. If not, you don't have ANSI. In any case, don't forget to send a CR and then the spaces to erase the ansi sequence in the event that there isn't ansi avaliable. - Arthur --- FMail 0.90 * Origin: <cough> Really? (1:106/100.12)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET