[comp.sys.ibm.pc.programmer] Swaping Caps lock with Ctrl key

chen@umiacs.umd.edu (Ling Tony Chen) (04/14/90)

I have an AT clone with a 101 key keyboard, and I'm sick and tired of
the position of the Caps lock key. It's where the ctrl key ought to be.

There's a public domain program KBDR.COM thats suppose to swap these
two keys, but for some reason that program won't work on my keyboard.

Now I've turned to trying to write TSR by myself, and I've been tracing
the BIOS to find out where it handles the Caps lock key.
I can now easily write a program to swap the alpha numeric keys, but
the Caps lock key is a bit more trickier, and I can't figure out how
to handle it.

If there is anybody that has working version of a small TSR that can swap
the Caps lock key with the lower left ctrl key, I would appreciate it if
you could send me a copy.
Otherwise, I would appreciate any comments on how to do it. In particular
I would like to know
(1) what interupt I should intercept.
(2) what the 2 scan codes are for those 2 keys.
(3) How do I store and retrieve those scan codes so that I can swap them.

Thanks in advance.

Tony Chen     chen@alv.umd.edu
--
Ling (Tony) Chen
chen@alv.umd.edu