🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1112

Turbo Pascal Keyboard Scanning

#1112
From: roy wood
Date: Thu, 21 Feb 1991 00:33
13 lines
1058 bytes
Can anyone provide any insight into how I might scan the keyboard from
within a Turbo Pascal program?  I know there is a facility for testing
whether there is a keystroke is waiting in the buffer, and a routine for
reading whatever keystrokes are there; however, I'd like to be able to just
look directly at whatever key has been struck, and get past that annoying
auto-repeat delay.  This is for use in an educational video game, so it's
important to have immediate response to keyboard input.
 
I'm sure that lots of people have done a similar thing, and I'd prefer not
to have to reinvent the wheel.  Can you help?  I'd appreciate it.
 
-Roy Wood (rrwood@contact.ca)
Technical Details
Message-ID: <1991Feb21.003344.13013@contact.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utdoe!contact!rrwood

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.ibm.pc.programmer,comp.sys.ibm.pc
Path: arc1-ca.pugleaf.net!utzoo!utdoe!contact!rrwood
From: rrwood@contact.uucp (roy wood)
Subject: Turbo Pascal Keyboard Scanning
Reply-To: rrwood@contact.uucp (roy wood)
Organization: Contact Public Unix BBS. Toronto, Canada.
Distribution: na
Date: Thu, 21 Feb 91 00:33:44 GMT
Message-ID: <1991Feb21.003344.13013@contact.uucp>