Folks,

no response to this yet, but I've some further progress.

It seems like the SGD default mechanism for modifying keymaps in character applications is simply incomplete and doesn't allow remapping things like "PAUSE" or other arbitrary keys on a keyboard. For this I have been advised to use an X11 based terminal, set the TERM type accordingly (e.g. TERM=vt100) and then customize using xmodmap.

According to all the doc out there, I should be able to dump the keymap using xmodmap, hack the keymap, and load it back in again using xmodmap. As a test, via an SGD session I dump the keymap using xmodmap, try loading it back in again without modifying anything, and it barfs with the same input file that it wrote out itself:

[EMAIL PROTECTED] tmp]$ xmodmap -pke > map.o
[EMAIL PROTECTED] tmp]$ xmodmap  /home/curtiscu/tmp/map.o
xmodmap:  /home/curtiscu/tmp/map.o:0:  bad keycode value
xmodmap:  1 error encountered, aborting.
There's also a requirement to be able to map a single key to multiple keystrokes, e.g. to spit out a long string in response to a single keypress. Users often have to type long strings into the char emulator, and programming some shortcut keys this way is how they save time. The windows based fat client they currently have in place does this nicely, but stores the config in a proprietary format on the client itself. It seems that replacing this fat client functionality via SGD isn't going to be an option.

Assuming my use of xmodmap above is due to some kind of user error or environmental problem (e.g. going through SGD), I think that last requirement I mentioned looks like it will be a deal breaker.

Any suggestions?
Curtis.


Curtis Cunningham wrote:
Dear SGD experts.. another keymapping question for you.

IHAC who's replacing existing windows based terminal emulators with terminal emulation provided through SGD.

An issue we're having is that individuals like to have their own keymaps in place.

This doc details how we tweak keymapping in SGD:
http://docs.sun.com/source/820-2550/term_em_keymap.html

I have some sample keymaps from the existing windows fat client keymaps that looks like we'll be needing to map many of the keys shown in the link above, plus some mapping involving other keys. For example ..

[snip]
N       VK_INSERT               VT_KEYPAD_0
N       VK_DELETE               VT_KEYPAD_PERIOD
CE      VK_PAUSE                VT_PF1
N       VK_Q                    "Q"
[snip]


Bear in mind this is using keymapping codes from another emulator. 

The translation looks straightforward for the first line.. e.g. INSERT=KP0. The next few lines are stumpworthy. How do we map a key on the client to the decimal point key on the keypad? How do we map the PAUSE button on the client? Can we map non special keys, like letters and numbers (e.g. shown in example line 4)?

There's an additional section in the above doc link that talks about mapping to non printing characters, or specify keys using octal/hex values. Can I use that format on the *left* hand side of an entry in the keymap file (e.g. \x35=Q, \656=PAUSE)?

Or .. are we limited strictly to those detailed in "Key Names" -> "Client Device Keys" in the above doc? I'd have thought those detailed in the doc are just the handy abstraction of the most common keys, but we can dig in and modify anything at a lower level.

Also, does xmodmap play into this at all? Seems like we can modify graphical X11 keymaps using that tool, and at a lower level than the SGD abstraction. BUT - we're in a character app here - when I try running xmodmap it complains about not having a DISPLAY.

What are the codes transmitted to the app server for things like PF0-PF4? Are codes for things like PF0 handy SGD specific aliases that are interchangeable to a particular hex/octal code?

Thanks in advance..
Curtis.

--
Curtis Cunningham
email: [EMAIL PROTECTED]

"There are 10 kinds of people in the world, those
  that understand binary .. and those that don't"


_______________________________________________
SGD-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sgd-users
  

-- 
Curtis Cunningham
email: [EMAIL PROTECTED]

"There are 10 kinds of people in the world, those 
  that understand binary .. and those that don't"

_______________________________________________
SGD-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sgd-users

Reply via email to