🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Which keyboard is it?

#7021
From: Derek Millar
Date: Mon, 10 Jun 1991 19:16
12 lines
1069 bytes
In article <1991Jun10.142922.12444@cs.fau.edu> roy@shark.cs.fau.edu (Roy Levow) writes:
>I need a method for telling within a program whether the keyboard on an
>MS-DOS machine is an old-style keyboard or an enhanced keyboard.  C or
>asm code preferred.
>
>Thanks in advance. 

f you have an AT or PS/2 machine, you can use  BIOS services 16h/5h and 
16h/10h to write extended key codes into the keyboard buffer and read them 
back.  If they come back, you have an extended keyboard
P.S. sorry if this post doesn't work--I'm just learning the program.
  (and this editor)
Technical Details
Message-ID: <1991Jun10.191647.8052@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!spool.mu.edu!agate!monsoon.Berkeley.EDU!dmillar
References: <1991Jun10.142922.12444@cs.fau.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!spool.mu.edu!agate!monsoon.Berkeley.EDU!dmillar
From: dmillar@monsoon.Berkeley.EDU (Derek Millar)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Which keyboard is it?
Keywords: keyboard
Message-ID: <1991Jun10.191647.8052@agate.berkeley.edu>
Date: 10 Jun 91 19:16:47 GMT
References: <1991Jun10.142922.12444@cs.fau.edu>
Sender: usenet@agate.berkeley.edu (USENET Administrator)
Organization: ucb
Lines: 12