Brazil-ABNT keyboard
Brought to you by:
bartoldeman
This fixes Brazil-ABNT keyboards. It adds 2 more keys, scancodes 73h and 7dh. One exists in jamanese keyboard and the other is exclusive.
No setup is needed in dosemu.conf. KEYB is needed, I temporarily uploaded it here: http://www.suporte.cosmodata.com.br/download/freedos/keyb-dosemu-abnt.zip
Use in AUTOEXEC.BAT with the files above.:
lh c:\dos\keyb br,850,c:\DOS\BR.KL
This layout will be included in FreeDOS 1.1
Updated KEYB layout for use with this patch
Two questions:
1) are you sure the 'us' layout needs to be extended? In principle KEYB should get the scancodes more directly unless you use DOSEMU in a terminal (dosemu -t). What happens if you remove that part of the patch in keymaps.c?
2) internet references suggest 0x7e for the NUM_DOT key instead of 0x7d. What happens if you press the key in
"showkey -s" on a Linux text console (press Ctrl-Alt-F1, login)?
Patch for Brazil-ABNT keyboard - with correct 0x7E key
Answer 1) IMHO it should be extended at least to include the "/?" key code 73h. The reason is that this is a very important key to have missing in case keyb is not properly configured.
The key 7Eh is not very important (redundant), but it will use just a few more bytes.
Answer 2) I GOT IT WRONG... I even booted in pure FreeDOS to double-check, then I checkd with Henrique Peron...
I already made a fix and replaced the patch. I am very glad that you got that one.
The KEYB layout is not afected by this fix