
This is my first release of a keyboard test suite for dosemu.
I have the programs working but it could use a little more polish.

The directories:
X
bases
dos_programs

X holds the source for a keyboard_test.  Which sends X events for key
presses and releases, to a specified window.  Generally invoked as:

keyboard_test -name "DOS in a BOX"


dos_programs holds the source and the binary for prntkey6.  Which
records the keypresses dos gets and interprets.
prntkey6 -s file --- records and prints the scancodes dos gets to file
prntkey6 -e file --- records and prints the unfiltered translations
                     int16 0x10 makes of the keys.
prntkey6 -n file --- records and prints the old style translations
                     int16 0x0  make for use with real old programs


bases handles my current test files:

All start with km.

The really important useful ones are:
kmallex.b4  For use with -e output
kmallnm.b4  For use with -n output
kmallsn.b5  For use with -s output

The scancode support is new and needs some checking to make sure
the keypress pattern I used when I typed my basis file in dos is the
same as keyboard_test.

BUGS
Currently I only test the us keyboard, as that is all I have, and I
assume a us keyboard layout in X.

TODO.
- Get some different test patterns for keyboard_test.c for non-us
  keyboards.
- Get some non us test basises
- Automate the process more.

General test procedure.
1a) dos -X & 
or 
1b) dos -X -I 'X { keycode }' &
2) cd into the dos directory with prntkey6
3) prntkey6 -e kmallex.1
4) keyboard_test -name "DOS in a BOX"
5) prntkey6 -n kmallnm.1
6) keyboard_test -name "DOS in a BOX"
7) prntkey6 -s kmallsn.1
8) keyboard_test -name "DOS in a BOX"
9) diff -u kmallex.1 kallex.b4  |less
10) diff -u kmallex.1 kallex.b4  |less
11) diff -u kmallex.1 kallex.b4  |less

If dosemu's translations are wrong the diffs in 9 10 or 11 should
be nonempty.

Eric Biederman <ebiederm+eric@ccr.net>



