[comp.sys.ibm.pc] Switching ESC and tilde/grave on XT clone keyboard?

wales@ucla-cs.UUCP (04/18/87)

I have a Taiwanese XT clone running DOS 3.1.

The ESC key is right above the right-hand numeric pad cluster (between
the backspace and NUM LOCK keys).  The "tilde" and "grave accent" key
is immediately to the left of the digit "1" key in the top row.

Being hopelessly used to ESC on the left, I would like to interchange
the functions of these two keys.  I assume this would have to be done
at the scan-code level:  since the ESC key currently produces the same
character whether SHIFT is being held down or not, it's hopeless to
wait until the keyboard output had been translated into ASCII and
then switch character codes.

Is there a reasonable way to do this via a small TSR program?  If so,
could someone help me figure out how?

I do *NOT* want to run a full-fledged keyboard remapping package like
ProKey (even if ProKey does work at the scan-code level -- and I don't
know whether it does anyway).  All I want to do is switch two keys.

-- Rich Wales // UCLA Computer Science Department // +1 213-825-5683
	3531 Boelter Hall // Los Angeles, California 90024-1600 // USA
	wales@CS.UCLA.EDU   ...!(ucbvax,rutgers)!ucla-cs!wales
"Sir, there is a multilegged creature crawling on your shoulder."