Article View: comp.os.msdos.programmer
Article #78Re: Keyboard type?
From: Ian D. Gay
Date: Sun, 01 Nov 1992 19:13
Date: Sun, 01 Nov 1992 19:13
25 lines
1377 bytes
1377 bytes
cl27111@uxa.cso.uiuc.edu (Christopher Lindsey) writes: >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. Thanks for the advice. Do all systems that implement service 5 also implement service 10? What if the user is leaning on a key while you do this? > You can also test the bit at 40:86, but some clones falsely set this, >so it isn't totally accurate. Isn't it 40:96? >Christopher Lindsey -- Dept. of Landscape Architecture, Univ. of Illinois
Technical Details
Message-ID:
<gay.720645180@sfu.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!destroyer!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!gayReferences:
<gay.720562144@sfu.ca> <Bx0wKv.Dv9@news.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!gay From: gay@beaufort.sfu.ca (Ian D. Gay) Subject: Re: Keyboard type? Message-ID: <gay.720645180@sfu.ca> Keywords: keyboard Sender: news@sfu.ca Organization: Simon Fraser University, Burnaby, B.C., Canada References: <gay.720562144@sfu.ca> <Bx0wKv.Dv9@news.cso.uiuc.edu> Date: Sun, 1 Nov 1992 19:13:00 GMT Lines: 25