One of the reasons I hate Xved is that it is so hard to control because
of the design decision to let so much of the control be handled via X.
Here is my latest problem. I am using a Sun type5 keyboard and I have
set it up so that it works perfectly in ordinary VED with the central
arrow keypad transmitting different characters from the 2,4,6,8 keys
on the numeric keypad so that I can use one lot for small moves and the
other for big moves, and also always making function keys
F1 F2 F3 .. F12
transmit the same characters as on our X terminals, so that the top row
function keys always do the following:
marklo, markhi, clearhead, linedelete, cleartail, wordleftdelete,
etc. etc.
I tried to do the same for XVED, and thought I had it all set up, until
I tried using it under motif, when suddenly lots of things changed. (I
am using Poplog Version 14.5 in both cases). In particular, some of the
function keys transmitted different key sequences.
Here are the differences, in both cases obtained by logging through from
my workstation (IPX) to a remote SPARCServer, one running Solaris with
motif poplog and one running SunOS with openlook poplog.
CODES TRANSMITTED
KEY On Solaris SunOS
(motif) (openlook)
F1 \^[[FFBE \^[[11~
F2 \^[[12~ \^[[12~
(others in top row are identical)
CENTRAL PAD
Insert \^[[FF63 \^[[2~
Home \^[[FF50 \^[<
End \^[[FF57 \^[>
Page up \^[[FF55 \^[[5~
Page dn \^[[FF56 \^[[6~
MIDDLE ARROW PAD
up arr \^[[FF52 \^[[A
left arr \^[[FF51 \^[[D
down arr \^[[FF54 \^[[B
right arr \^[[FF53 \^[[C
On Right hand keypad everything is identical, also Left hand keypad.
On the advice of someone (I forget who) I had set up the codes to be
transmitted in my .Xdefaults file, thus:
! translations to make XVED work
*XpwScrollText*Translations: #override \
<Key>Num_Lock: string(0x1b) string("[110~") \n\
<Key>F1: string(0x1b) string("[11~") \n\
<Key>F2: string(0x1b) string("[12~") \n\
<Key>F3: string(0x1b) string("[13~") \n\
<Key>F4: string(0x1b) string("[14~") \n\
<Key>F5: string(0x1b) string("[15~") \n\
<Key>F6: string(0x1b) string("[17~") \n\
<Key>F7: string(0x1b) string("[18~") \n\
<Key>F8: string(0x1b) string("[19~") \n\
<Key>F9: string(0x1b) string("[20~") \n\
<Key>F10: string(0x1b) string("[21~") \n\
<Key>F11: string(0x1b) string("[23~") \n\
<Key>F12: string(0x1b) string("[24~") \n\
<Key>R1: string(0x1b) string("[111~") \n\
<Key>R2: string(0x1b) string("[112~") \n\
<Key>R3: string(0x1b) string("[113~") \n\
<Key>R4: string(0x1b) string("[114~") \n\
<Key>R5: string(0x1b) string("[115~") \n\
<Key>R6: string(0x1b) string("[117~") \n\
<Key>R7: string(0x1b) string("[118~") \n\
<Key>R8: string(0x1b) string("[119~") \n\
<Key>R9: string(0x1b) string("[120~") \n\
<Key>R10: string(0x1b) string("[121~") \n\
<Key>R11: string(0x1b) string("[123~") \n\
<Key>R12: string(0x1b) string("[124~") \n\
<Key>R13: string(0x1b) string("[125~") \n\
<Key>R14: string(0x1b) string("[126~") \n\
<Key>R15: string(0x1b) string("[128~") \n\
<Key>Up: string(0x1b) string("[A") \n\
<Key>Down: string(0x1b) string("[B") \n\
<Key>Right: string(0x1b) string("[C") \n\
<Key>Left: string(0x1b) string("[D") \n\
<Key>KP_Enter: string(0x1b) string("OM") \n\
<Key>KP_Add: string(0x1b) string("Ok") \n\
<Key>KP_Subtract: string(0x1b) string("Om") \n\
<Key>KP_Multiply: string(0x1b) string("Oj") \n\
<Key>KP_Divide: string(0x1b) string("Oo") \n\
<Key>KP_0: string(0x1b) string("Op") \n\
<Key>KP_Decimal: string(0x1b) string("On") \n\
<Key>KP_1: string(0x1b) string("Oq") \n\
<Key>KP_2: string(0x1b) string("Or") \n\
<Key>KP_3: string(0x1b) string("Os") \n\
<Key>KP_4: string(0x1b) string("Ot") \n\
<Key>KP_5: string(0x1b) string("Ou") \n\
<Key>KP_6: string(0x1b) string("Ov") \n\
<Key>KP_7: string(0x1b) string("Ow") \n\
<Key>KP_8: string(0x1b) string("Ox") \n\
<Key>KP_9: string(0x1b) string("Oy") \n\
<Key>Help: string(0x1b) string("K") \n\
<Key>Home: string(0x1b) string("<") \n\
<Key>End: string(0x1b) string(">") \n\
<Key>Insert: string(0x1b) string("[2~") \n\
<Key>Prior: string(0x1b) string("[5~") \n\
<Key>Next: string(0x1b) string("[6~")\n
It looks as if under Motif some of these settings are being ignored,
in particular
F1, Insert, Home, End, Insert, Prior, Next, UP, Down, Right Left
Does anyone know any way round this? Do these keys have different names
under motif?
Being shot would be too kind a fate for the designers of X!
Aaron
|