🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #593

Re: How to test for a key ALREADY pressed?

#593
From: Glynn Brooks
Date: Tue, 07 Apr 1992 12:41
8 lines
886 bytes
When a key is pressed, it is stored in the keyboard buffer.  If you call
BIOS Int 16h, function 1 or 11, you will get back an indication of
whether a keystroke is available or not, and what the keystroke is.  The
keystroke remains in the buffer until Int 16h, function 0 or 10 is
executed.

So, yes, you can see if a particular keystroke is in the buffer.  If
there are multiple keystrokes there, you can only see the first one.
Technical Details
Message-ID: <1992Apr7.124152.6056@mips.mitek.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!mercury.unt.edu!mips.mitek.com!hp835.mitek.com!rgb
References: <rqjbpINNiqv@matt.ksu.ksu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!mercury.unt.edu!mips.mitek.com!hp835.mitek.com!rgb
From: rgb@hp835.mitek.com (Glynn Brooks)
Subject: Re: How to test for a key ALREADY pressed?
Organization: OpenConnect Systems
Date: Tue, 7 Apr 1992 12:41:52 GMT
Message-ID: <1992Apr7.124152.6056@mips.mitek.com>
References: <rqjbpINNiqv@matt.ksu.ksu.edu>
Sender: news@mips.mitek.com (USENET Administrator)
Lines: 10