HP Neoware c50 TeemTalk® 5.0 for Unix User's Guide - Page 52
Translation Resource Examples, <Key>Meta_R
View all HP Neoware c50 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 52 highlights
Keyboard Configuration Translation Resource Examples The following example shows how to use the Translations resource to modify the translation table so that the Compose Character function is assigned to the key that has the keysym Meta_R. xteemx340*vt220.Translations: #override \n\ Meta_R: value(-166) This will cause the line Meta_R: value(-166) to be added to the beginning of the standard translation table. The effect is to define the keyboard's rightmost Meta key as the Compose Character key. Note: The #override directive following the Translations resource name ensures that if the translation table already assigns a function to a keysym specified by the resource, the new function will replace the old. More than one key definition can be included in the Translations resource, as shown in the following example: xteemx340*vt220.Translations: #override \n\ F1: string("This is the F1 key") \n\ KP_4: string("This is the keypad 4 key") \n\ Backspace: value(127) Note: By convention each translation is specified on a separate line. The \n\ at the end of each line except the last causes the program to interpret the next line as a continuation of the same string. Redefining the shifted function of a key can be achieved by inserting the word Shift at the beginning of the key translation line, as shown in the following example: xteemx340*vt220.Translations: #override \n\ Shift keysym: value(reference number) Actions can also be mixed. The following example will cause ESC H to be sent when the F7 key is pressed: xteemx340*vt220.Translations: #override \n\ F7: value(27) string("H") 4-4