HP Visualize J5000 HP Workstations - Graphics Administration Guide For Red Hat - Page 53

Keyboards

Page 53 highlights

All of the values (C, H, V, X, Y, Z, a, b, u, v, y, x) are floating-point values. Some of the values are constrained to be between zero and some upper bound; the upper bounds are given in parentheses above. The syntax for these values is an optional "+" or "-" sign, a string of digits possibly containing a decimal point, and an optional exponent field consisting of an "E" or "e" followed by an optional "+" or ""sign, followed by a string of digits. For more information on device independent color, see the Xlib reference manual. Keyboards The X keyboard model is broken into two layers: serverspecific codes (called keycodes) which represent the physical keys, and server-independent symbols (called keysyms) which represent the letters or words that appear on the keys. Two tables are kept in the server for converting keycodes to keysyms: Modifier List Some keys (such as Shift, Control, and Caps Lock) are known as modifiers and are used to select different symbols that are attached to a single key (such as Shift-a, which generates a capital "A", and Control-l, which generates a control character "^L"). The server keeps a list of keycodes corresponding to the various modifier keys. Whenever a key is pressed or released, the server generates an event that contains the keycode of the indicated key as well as a mask that specifies which of the modifier keys are currently pressed. Most servers set up this list to initially contain the various shift, control, and shiftlock keys on the keyboard. Keymap Table Applications translate event keycodes and modifier masks into keysyms using a keysym table which contains one row for each keycode and one column for various modifier states. This table is initialized by the server to correspond to normal typewriter conventions. The exact semantics of how the table is interpreted to produce keysyms depends on the particular program, libraries, and language input method used, but the following conventions for the first four keysyms in each row are generally adhered to. The first four elements of the list are split into two groups of keysyms. Group 1 contains the first and second keysyms; Group 2 contains the third and fourth keysyms. Within each group, if the first element is alphabetic and the the second element is the special keysym NoSymbol, then the group is treated as equivalent to a group in which the first element is the lowercase letter and the second element is the uppercase letter. Switching between groups is controlled by the keysym named "Mode Switch", by attaching that keysym to some key and attaching that key to any one of the modifiers Mod1 through Mod5. This modifier is called the group modifier. Group 1 is used when the group modifier is off, and Group 2 is used when the group modifier is on. Graphics Administration Guide For Red Hat Linux 6.2

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73

All of the values (
C
,
H
,
V
,
X
,
Y
,
Z
,
a
,
b
,
u
,
v
,
y
,
x
) are floating-point values. Some of the
values are constrained to be between zero and some upper bound; the upper bounds are
given in parentheses above. The syntax for these values
is an optional "
+
" or "
-
" sign, a string of digits possibly containing a decimal point, and
an optional exponent field consisting of an "
E
" or "
e
" followed by an optional "
+
" or "
-
"sign, followed by a string of digits.
For more information on device independent color, see the Xlib reference manual.
Keyboards
The X keyboard model is broken into two layers: serverspecific codes (called
keycodes
)
which represent the physical keys, and server-independent symbols (called
keysyms
)
which represent the letters or words that appear on the keys. Two tables are kept in the
server for converting keycodes to keysyms:
Modifier List
Some keys (such as Shift, Control, and Caps Lock) are known as
modifiers
and are used
to select different symbols that are attached to a single key (such as Shift-a, which
generates a capital "A", and Control-l, which generates a control character "^L").
The
server keeps a list of keycodes corresponding to the various modifier keys. Whenever a
key is pressed or released, the server generates an event that contains the keycode of the
indicated key as well as a mask that specifies which of the modifier keys are currently
pressed. Most servers set up this list to initially contain the various shift, control, and
shiftlock keys on the keyboard.
Keymap Table
Applications translate event keycodes and modifier masks into keysyms using a keysym
table which contains one row for each keycode and one column for various modifier
states. This table is initialized by the server to correspond to normal typewriter
conventions. The exact semantics of how the table is interpreted to produce keysyms
depends on the particular program, libraries, and language input method used, but the
following conventions for the first four keysyms in each row are generally adhered to.
The first four elements of the list are split into two groups of keysyms. Group 1 contains
the first and second keysyms; Group 2 contains the third and fourth keysyms. Within
each group, if the first element is alphabetic and the the second element is the special
keysym
NoSymbol
, then the group is treated as equivalent to a group in which the first
element is the lowercase letter and the second element is the uppercase letter.
Switching between groups is controlled by the keysym named "Mode Switch", by
attaching that keysym to some key and attaching that key to any one of the modifiers
Mod1 through Mod5. This modifier is called the
group modifier
.
Group 1 is used when
the group modifier is off, and Group 2 is used when the group modifier is on.
Graphics Administration Guide For Red Hat Linux 6.2