[comp.binaries.ibm.pc.d] question about kbmap

jms@hcx.uucp (Michael Stanley) (02/06/89)

     I just recently pulled kbmap.com from the comp.sys.ibm.pc newsgroup.
It basically uses INT 15h function 4Fh to alter scan codes received from
the keyboard before they are processed (the program claims to only work
for an AT type PC).  For the most part it seems to work very well (I use
it to swap my CapsLock and Ctrl keys -- putting that Ctrl key back where
it belongs), but it does seem to have one side effect.  My Pause key no
longer works like it used to.  Now it only pauses the screen about every
15 or so times it is hit, and in every case, each keypress of the Pause
key toggles both the Shift and Num Lock.  If anyone out there is familiar
with this interrupt and the scan codes for an AT, I'd appreciate any ideas
they might have on what is happening and how I might fix it.

	Michael Stanley (jms@hcx.uafy.edu)

	...!rutgers!pbox!romed!cseg!hcx.uafy.edu!jms
		-or-
	...!ihnp4!okstate!romed!cseg!hcx.uafy.edu!jms

paulc@hpgrla.HP.COM (@Paul Charlton) (02/07/89)

>     I just recently pulled kbmap.com from the comp.sys.ibm.pc newsgroup.
>It basically uses INT 15h function 4Fh to alter scan codes received from
>the keyboard before they are processed (the program claims to only work
>for an AT type PC).  For the most part it seems to work very well (I use
>it to swap my CapsLock and Ctrl keys -- putting that Ctrl key back where
>it belongs), but it does seem to have one side effect.  My Pause key no
>longer works like it used to.  Now it only pauses the screen about every
>15 or so times it is hit, and in every case, each keypress of the Pause
>key toggles both the Shift and Num Lock.  If anyone out there is familiar
>with this interrupt and the scan codes for an AT, I'd appreciate any ideas
>they might have on what is happening and how I might fix it.
>
>	Michael Stanley (jms@hcx.uafy.edu)
>

	the problem comes from the fact the the "PAUSE" key on your keyboard

	sends the following codes:
	"<CONTROL on><NUMLOCK on><NUMLOCK off><CONTROL off>"

	the keyboard mapping program translates this (under your
	mapping) to:
	"<CAP LOCK on><NUMLOCK on><NUMLOCK off><CAP LOCK off>"

	a sequence which has the net effect of toggling 
	both NUMLOCK and CAPLOCK keyboard states...

	seems your best workaround is to use "control -S" or
	"control-NUMLOCK" manually...

	the workaround I used was to disassemble the keyboard, and
	cut and jumper the traces for CONTROL and CAPLOCK keys

	(who needs a warranty?)
 
	PaulC

	{paulc@hpgrai.hp.com} | {hplabs!hpgrai!paulc}