Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!luth!sunic!tut!ra!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi LASK) Newsgroups: comp.lang.pascal Subject: Re: Readkey without "use crt" (Was Re: Strobing the keyboard) Message-ID: <1989Nov22.161724.24040@uwasa.fi> Date: 22 Nov 89 16:17:24 GMT References: <922taylorj@yvax.byu.edu> Reply-To: ts@chyde.uwasa.fi (Timo Salmi LASK) Organization: University of Vaasa, Finland Lines: 24 In article <922taylorj@yvax.byu.edu> taylorj@yvax.byu.edu writes: >There are two solutions to this problem: >1) Use CRT but make the I/O go through DOS. All you have to do is add the >lines > Assign(input, ''); reset(input); .... stuff deleted ... Right. But some incompatible PCs work better still if the Crt unit is omitted altogether, so your solution below might be preferable. >2) Go directly to DOS or BIOS to read a key. >To read a key using DOS, you'll need something like > var > regs :registers; > regs.ah := 8; .... stuff deleted ... Right. And for those interested in the subject there is more information in Ezzel, Programming the IBM User Interface. ................................................................... Prof. Timo Salmi (Site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: vakk::salmi Bitnet: salmi@finfun