Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!cernvax!chx400!ugun2b!ugsc2a!fisher From: fisher@sc2a.unige.ch (Markus Fischer) Newsgroups: comp.sys.ibm.pc Subject: Re: Check if ANSI.SYS driver is loaded. Message-ID: <143@sc2a.unige.ch> Date: 27 Nov 89 23:40:25 GMT References: <622@ssp16.idca.tds.philips.nl> Organization: University of Geneva, Switzerland Lines: 18 In article <622@ssp16.idca.tds.philips.nl>, aruit@idca.tds.PHILIPS.nl (A. de Ruiter) writes: > Is there anybody out there who knows how you can check from out a user program > if the ANSI.SYS driver is loaded. It seems one way to do this is to send a Device Status Report (DSR) sequence, and to check whether the Cursor Position Report (CPR) has arrived on stdin... i.e., send a "\0x1b[6n", and read a "\0x1b[%d;%dR", line, column. There is little chance that the user will type in exactly that at the right time, don't you think ? Markus Fischer -|--|--|--|--|--|--I Department of Anthropology -|--|--|--|--|--|--|-(#)-I University of Geneva -|--|--|--|--|--|--|--|--|-(#)-|-(#)(#)(_)-I CH-1227 Carouge (GE) -&-(_)-|--|--|-(#)-&--|-(#)(#)(_)(#)-&-(_)(#)-I Switzerland -|--|--|--|--|-(#)(_)-|-(_)(_)(_)(#)-I black (#) to kill ! --|--|-(#)(_)(_)(_)(#)(#)(_)(_) fisher@sc2a.unige.ch =+==+==+==+==+==+==+==+==+==+==+==+==+==+==+=(#)=+ fisher@cgeuge52.bitnet