Page 1 of 1

I don't think KEYB SP is working right...

Posted: Wed 05 Jun, 2019 4:54 pm
by Neville
I regularly use several DOS machines, and I just realised the symbols no longer match my keyboard's, despite having loaded KEYB SP. I don't think i had this issue with v14, but I'm not sure. Can anyone reproduce this?

Re: I don't think KEYB SP is working right...

Posted: Wed 05 Jun, 2019 6:48 pm
by JosepMa
MS-DOS 6.22 here and all fine ( normal, shift and alt+gr characters)

config.sys:
COUNTRY=034,,C:\DOS\COUNTRY.SYS
DEVICEHIGH=C:\DOS\DISPLAY.SYS CON=(EGA,,1)

autoexec.bat
MODE CON CODEPAGE PREPARE=((850) C:\DOS\EGA.CPI)
MODE CON CODEPAGE SELECT=850

KEYB SP,,C:\DOS\KEYBOARD.SYS

Re: I don't think KEYB SP is working right...

Posted: Wed 05 Jun, 2019 6:56 pm
by Neville
I'm just loading KEYB SP at the end of my AUTOEXEC.BAT, but that used to suffice on the old days.

Re: I don't think KEYB SP is working right...

Posted: Mon 17 Jun, 2019 12:37 am
by ruben_balea
No, it doesn't work correctly. Until now I thought it was fine because on Windows it was working fine... until I launched a MS-DOS session :o
On Windows ME the keyboard is fine for Windows programs but for DOS programs it doesn't work.
Note: KEYB command is no longer available on Windows ME, the keyboard layout for legacy DOS programs is set automatically according to the keyboard language selected for Windows.

I typed the same keys in the same order on Notepad and MS-DOS Editor, some keys give different results and ALT-GR characters are not showing at all on DOS:

Imagen1.png
Imagen1.png (31.99 KiB) Viewed 3801 times

And this happens also on another machine with MS-DOS 6.2x using KEYB SP but the same hard disk image (with same settings, no modifications at all) works OK on V14

Re: I don't think KEYB SP is working right...

Posted: Sun 23 Jun, 2019 7:05 pm
by Neville
Thank you. For a moment I thought I was seeing ghosts.

Re: I don't think KEYB SP is working right...

Posted: Sun 23 Jun, 2019 8:33 pm
by ruben_balea
I'm quite used to hte US keyboard layout, you can download a picture of that keyboard to see what key you have to press for each symbol when a KEYB command or similar is not available or not working.
Please note that the backslash key located above ENTER in the US layout is placed between Left SHIFT and Z on most other layouts, also the right Alt is replaced with Alt Gr.
Also remember that if you already used KEYB xx (manually or from autoexec.bat) and it's not working properly you must run KEYB US again, otherwise you'll end with a big mess of layouts.


Wikipedia has this picture of the IBM Model M keyboard with US layout:
Image

Re: I don't think KEYB SP is working right...

Posted: Mon 24 Jun, 2019 1:30 pm
by Neville
Thanks for the tip.

Re: I don't think KEYB SP is working right...

Posted: Mon 24 Jun, 2019 5:50 pm
by JosepMa
MS DOS 6.22 -> Fine
Command prompt on Windows 98 -> Fine
PCem V15 Command prompt on Windows Me -> Error as in ruben's post.
PCem V14 Command prompt on Windows Me -> Works ( same disk image and config as above)

Re: I don't think KEYB SP is working right...

Posted: Mon 24 Jun, 2019 6:04 pm
by Neville
I'm getting wrong results under MS-DOS 6.22. This is what I get when I press Mays + the top row in my keyboard, under the function keys:

Image

Re: I don't think KEYB SP is working right...

Posted: Mon 24 Jun, 2019 10:38 pm
by ruben_balea
For me MS-DOS 6.22 is wrong too:
The attachment 2506190035.png is no longer available
Edit: I compiled PCem five weeks ago, I will update it now and test again.
Edit 2: Only 'makefile.in' was changed since last update…
Edit 3: KEYB UK is not working 100% properly either.
IBM M KEYBOARD UK.jpg
IBM M KEYBOARD UK.jpg (149.6 KiB) Viewed 3508 times

Re: I don't think KEYB SP is working right...

Posted: Tue 25 Jun, 2019 12:42 am
by ruben_balea
:roll: I've mixed the pictures while editing last topic…

With KEYB UK the key at the left of '1' works as a duplicate of the key at the left of 'Z' :arrow: By the way I'm using a Spanish USB keyboard (Microsoft Wired Keyboard 600 Model 1366) on Windows 10 x64 Spanish, I'm not sure if that is relevant or not.
This is the result of the full numbers row with and witouth pressing also the 'SHIFT' key:
Screenshot from 2019-06-25 02-31-23.png
Screenshot from 2019-06-25 02-31-23.png (3.14 KiB) Viewed 3505 times

Re: I don't think KEYB SP is working right...

Posted: Tue 25 Jun, 2019 10:00 pm
by JosepMa
I am unsure why you have the problem on MS-DOS, since it works here, but since I had the problem in WinMe, I tried recompiling the sources and located the commit 1432 "Add ability to change AT keyboard scancode and disable translation. Fixes keyboard in Solaris 8." to cause the command prompt on WinMe to fail on my side.

Re: I don't think KEYB SP is working right...

Posted: Wed 26 Jun, 2019 12:40 am
by ruben_balea
OK, I seen the updates to 'keyboard_ac.c' so I did a few more tests, KEYB SP with a PS/2 keyboard works in MS-DOS 6.22, with a XT keyboard works too but with an AT keyboard does not work.
The same applies for KEYB UK but on this case seems to be wrong only the key at the left of '1' which types the same characters as the key at the left of 'Z' i.e., \|

Note: With each kind of keyboard I mean emulating a motherboard with that kind of keyboard, not to the physical keyboard I'm using.

Re: I don't think KEYB SP is working right...

Posted: Sun 30 Jun, 2019 8:44 pm
by mgutzeit
Same for "german" keyb layout... Does not work with a dos version below 6.22.... Keyboard "freezes" when pressing [ALT GR]... So no Backslash possible with german keyboard driver

Re: I don't think KEYB SP is working right...

Posted: Sat 17 Aug, 2019 8:27 am
by mgutzeit
i can emulate the backslash with <STRG> + <ALT> + <#> on an IBM Thinkpad T440p with native German Keyboard running Windows 10 (German)