🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Keyboard type?

#76
From: Christopher Lindsey
Date: Sun, 01 Nov 1992 05:58
15 lines
1174 bytes
gay@beaufort.sfu.ca (Ian D. Gay) writes:

>What is the best software method of determining the keyboard type 
>(enhanced / 84 key ... others?) on a DOS system?

	The best way to do this (in my opinion) is to stuff the keyboard
buffer 16 times through interrupt 16, service 5.  Next, try reading in
16 bytes of information from the keyboard buffer through interrupt 16, service
10.  If you put in 16 asterisks, you will get 16 asterisks back if an
enhanced keyboard is present.  Otherwise, you'll get nothing.

	You can also test the bit at 40:86, but some clones falsely set this,
so it isn't totally accurate.

Christopher Lindsey -- Dept. of Landscape Architecture, Univ. of Illinois
Technical Details
Message-ID: <Bx0wKv.Dv9@news.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!cl27111
References: <gay.720562144@sfu.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!cl27111
From: cl27111@uxa.cso.uiuc.edu (Christopher  Lindsey)
Subject: Re: Keyboard type?
References: <gay.720562144@sfu.ca>
Message-ID: <Bx0wKv.Dv9@news.cso.uiuc.edu>
Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
Organization: University of Illinois at Urbana
Date: Sun, 1 Nov 1992 05:58:06 GMT
Keywords: keyboard
Lines: 15