I've written a new, portable keyboard mapping implementation for rdesktop.
It should hopefully work on all X11 systems. This new implementation only
looks at X11 keysyms: Not on (nonportable) keycodes or modifier status.
This means that rdesktop will obey your local keyboard configuration. For
example, if you have swapped CapsLock and Control in X11, rdesktop will
use this mapping.
The design means that it's not important that you run the same keyboard
mapping in X11 as over RDP. For example, you can have a swedish mapping in
X11 and run an deutsch mapping over RDP. @ etc will still work. But of
course, you cannot produce chars that are not possible to produce on a
deutch keyboard.
I'm using separate mapping files (in $PREFIX/share/rdesktop/keymaps),
pretty much like rdesktop Matt's CVS version does. The keymaps are not
compatible, but I've included an Python-script that tries to make a
translation. I only have access to a Swedish keyboard, so this translation
is the only one that I have tested. The us translation probably needs some
work, but it should be easy to fix this.
I've tested this new implementation on Linux/Intel and Solaris/Sparc and
it works good for me. No special flags are required to run rdesktop within
Xvnc.
The code can be downloaded from http://www.cendio.se/~peter/rdesktop/.
Comments are appreciated.
--
Peter Åstrand Telephone: +46-13-21 46 00
Cendio Systems E-mail: peter@...
Teknikringen 3
583 30 Linköping
Sweden