Hi!
I am trying to make dosemu's keyboard more Polish-friendly.
I downloaded and applyied keyboard path for dosemu 1.0.0
(dosemu-1.0.0.eb1.21.patchset.tar.gz)
and tryied some folks under text console.
Looking at keymaps.c i saw "pl" keyboard. That looked good, but
ocurred to be unusable for me. "auto" option worked a bit better for
me, as it gave me *some* code for *almost* every of my national char's
(but not the right codes - anyway).
There are 3 maps.
normal - key_map
upper - shift_map
alt (right) - alt_map
But in my language I have for example letter "a" and "A"
both with "," at the bottom (as if You joined these two characters into
one).
Codes I would like to have for them (for the program that I run
inside dosemu - 8bit codes) are:
"a" - 97 (60h) - world standard
"A" - 65 (41h) - world standard
"a," - 134 (86h) - local standard called Mazovia or Latin2
"A," - 143 (8fh) - same as above
So I have at least 4 cases when "a" key is pressed
- no alt, no shift - just "a"
- no alt but shift - just "A"
- alt, no shift - "a,"
- alt and shift - "A,"
Add to it, that when CapsLock is pressed it should behave as if it
had Shift pressed... Is it possible to do such things that I need
with those (only) 3 maps ?
(Where's the code, that uses them ? in old_serv_xlat.c ??? is it
used anyway? so why is it called "old"? if it isn't used why
is it in source tree ?)
Uppercasing is also a problem, 'cause its not as simple as -32 for
"normal" chars - it must be given as a table for every single char.
Ive got 3 standards of coding for polish chars in front of me:
- Mazovia (Latin2) - doesn't broke the frames and IS the standard
- DOS 852 codepage (don't like it too much)
- Windows 1250 (shit!)
Anyway it doesn't really matter which of them I code in dosemu.
I can use any of them, cause my database program can change the codes
from input using recode table to internally used Mazovia (Latin2)
and then recode again using different table before displaying.
But it would be nice to have some standard kept.
So my question is: how to ? Is it possible to have it done using
today's dosemu internals, or should I change sth significantly ?
If yes - where to look, what to change ?
Would You tell me more about those 3 recode tables ?
I understand that they have 0xef?? format, where ?? is sth,
that really matters. But how it really works - especially for
alt_map ? (maybe add alt_shift_map to defs, or to uppercase method ?
and small change to recode proc - btw: where it is done ?)
The second idea is that *IF* dosemu gives proper scancodes (those
twice 8bit) I would be able to use a program that changes scancodes
to the codes I need - as I used to use such in real DOS.
Would it work anyway? I tryied to use it under 0.96 dosemu and it
didn't work.
Last thought: I think I should be able to change what char is displayed
on the console (via ssh or telnet to be exact) as chat that has code XX
?
It isn't dosemu-related ;) Where to change such things ?
I would like to have normal, 8bit frames, instead of strange
-|+{} chars when using dosemu via ssh.
Whoa! I wrote a lognish letter... Sorry ;)
Waiting four Your words.
Grzegorz Prokopski
PS: If somebody remember - I asked about file locking some time ago.
I didn't forgot the topic and I am about to prepare a path that enables
dosemu to lock properly files on NetWare (ncp) mounted shares
(thanks go to Petr Vandrove).
Things got longer, but I am going to test it in next week.
That's a pity nobody from SAMBA team answered to my emails (3 of them)
about smbfs file locking - so it still doesn't work well.