Next: !labx, Previous: !keystate, Up: Read-Write Global Vars [Contents][Index]
[x11 package]
If key press events are selected through
xregister
and waited for using xloop
, then !keysym
contains a long
number that identifies the character or function
selected by the last pressed key, including the effects of modifier keys
such as Shift
and Alt
. For the regular alphanumerical and
punctuation keys, the appropriate value from the native character set
(e.g., ASCII) is returned. Such a value, when stored in a byte
variable and then transformed to a string
using smap
,
yields the string value of the pressed key. Special keys, such as
function keys, arrow keys, and keypad keys (if Num Lock
is
inactive) yield numbers greater than 255. On my system, the following
key values are valid: