This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



XStringToKeysym(3)                             XLIB FUNCTIONS                             XStringToKeysym(3)



NAME
       XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase - convert keysyms

SYNTAX
       KeySym XStringToKeysym(char *string);

       char *XKeysymToString(KeySym keysym);

       KeySym XKeycodeToKeysym(Display *display, KeyCode keycode, int index);

       KeyCode XKeysymToKeycode(Display *display, KeySym keysym);

       void XConvertCase(KeySym keysym, KeySym *lower_return, KeySym *upper_return);

ARGUMENTS
       display   Specifies the connection to the X server.

       index     Specifies the element of KeyCode vector.

       keycode   Specifies the KeyCode.

       keysym    Specifies the KeySym that is to be searched for or converted.

       lower_return
                 Returns the lowercase form of keysym, or keysym.

       string    Specifies the name of the KeySym that is to be converted.

       upper_return
                 Returns the uppercase form of keysym, or keysym.

DESCRIPTION
       Standard KeySym names are obtained from <X11/keysymdef.h> by removing the XK_ prefix from each name.
       KeySyms that are not part of the Xlib standard also may be obtained with this function.  The set of
       KeySyms that are available in this manner and the mechanisms by which Xlib obtains them is implemen-tation-dependent. implementation-dependent.
       tation-dependent.

       If the KeySym name is not in the Host Portable Character Encoding, the result is implementation-dependent. implementationdependent.
       dependent.  If the specified string does not match a valid KeySym, XStringToKeysym returns NoSymbol.

       The returned string is in a static area and must not be modified.  The returned string is in the Host
       Portable Character Encoding.  If the specified KeySym is not defined, XKeysymToString returns a NULL.

       The XKeycodeToKeysym function uses internal Xlib tables and returns the KeySym defined for the speci-fied specified
       fied KeyCode and the element of the KeyCode vector.  If no symbol is defined, XKeycodeToKeysym
       returns NoSymbol.

       If the specified KeySym is not defined for any KeyCode, XKeysymToKeycode returns zero.

       The XConvertCase function returns the uppercase and lowercase forms of the specified Keysym, if the
       KeySym is subject to case conversion; otherwise, the specified KeySym is returned to both
       lower_return and upper_return.  Support for conversion of other than Latin and Cyrillic KeySyms is
       implementation-dependent.

SEE ALSO
       XLookupKeysym(3X11)
       Xlib - C Language X Interface



X Version 11                                    libX11 1.2.1                              XStringToKeysym(3)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...