Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XKeysymToKeycode(3X) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XLookupKeysym(3X)




XStringToKeysym(3X) XStringToKeysym(3X)
NAME XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode - convert keysyms SYNOPSIS KeySym XStringToKeysym (string) char *string; char *XKeysymToString (keysym-str) KeySym keysym-str; KeySym XKeycodeToKeysym (display, keycode, index-return) Display *display; KeyCode keycode; int index-return; KeyCode XKeysymToKeycode (display, keysym-kcode) Display *display; Keysym keysym-kcode; DESCRIPTION These functions handle conversions between keysyms and key- codes. Keysym names are listed in <X11/keysymdef.h>, where each name is preceded by XK_, which must be removed to ob- tain a valid keysym name. The XStringToKeysym function converts the name of a keysym to its corresponding keysym code. This function returns a pointer to a string in a static area, so the string must not be modified. If the specified string does not match a valid keysym, XStringToKeysym returns NoSymbol. The XKeysymToString function converts a keysym code to the name of the keysym. If the specified keysym is not defined, XKeysymToString returns a NULL. The XKeycodeToKeysym function converts a keycode to a de- fined keysym. If no keysym is defined for the specified keycode, XKeycodeToKeysym returns NoSymbol. The XKeysymToKeycode function converts a keysym to the ap- propriate keycode. If the specified keysym is not defined for any keycode, XKeysymToKeycode returns 0. Arguments These functions accept the following arguments: display Specifies the connection to the X server. index-return Returns the element of keycode vector. November, 1990 1



XStringToKeysym(3X) XStringToKeysym(3X)
keycode Specifies the keycode. keysym-kcode Specifies the keysym to be searched. keysym-str Specifies the keysym to be converted. string Specifies the name of the keysym to be converted. SEE ALSO XLookupKeysym(3X)
Xlib - C Language Interface
2 November, 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026