XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase − convert keysyms


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);



Specifies the connection to the X server.


Specifies the element of KeyCode vector.


Specifies the KeyCode.


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


Returns the lowercase form of keysym, or keysym.


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


Returns the uppercase form of keysym, or keysym.


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 implementation-dependent.

If the KeySym name is not in the Host Portable Character Encoding, the result is implementation-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 specified KeyCode and the element of the KeyCode vector. If no symbol is defined, XKeycodeToKeysym returns NoSymbol. XKeycodeToKeysym predates the XKB extension. If you want to lookup a KeySym while using XKB you have to use XkbKeycodeToKeysym.

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.


Xlib − C Language X Interface

More Linux Commands

nofilter_sp(3ncurses) - curses screen-pointer extension.....
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

systemd-remount-fs(8) Remount root and kernel file systems
systemd-remount-fs.service is an early-boot service that applies mount options listed in fstab(5) to the root file system, the /usr file system and the kernel A

TAP::Parser::Iterator::Process(3pm) - Iterator for process-b
This is a simple iterator wrapper for executing external processes, used by TAP::Parser. Unless youre writing a plugin or subclassing, you probably wont need to

fmtmsg(3) - print formatted error messages - Linux man page
This function displays a message described by its arguments on the device(s) specified in the classification argument. For messages written to stderr, the forma

Mail::SpamAssassin::Plugin::SPF(3pm) - perform SPF verificat
This plugin checks a message against Sender Policy Framework ( SPF ) records published by the domain owners in DNS to fight email address forgery and make it ea

iswblank(3) - test for whitespace wide character (Man Page)
The iswblank() function is the wide-character equivalent of the isblank(3) function. It tests whether wc is a wide character belonging to the wide-character cla

sasl_setpass(3) - Check a plaintext password (Man Page).....
sasl_setpass will set passwords in the sasldb, and trigger the setpass callbacks for all available mechanisms. user is the username to set the password for. pas

perl582delta(1) - what is new for perl v5.8.2 (Man Page)....
This document describes differences between the 5.8.1 release and the 5.8.2 release. If you are upgrading from an earlier release such as 5.6.1, first read the

iconv(3) - perform character set conversion - Linux man page
The iconv() function converts a sequence of characters in one character encoding to a sequence of characters in another character encoding. The cd argument is a

grub2-render-label(1) generate a .disk_label for Apple Macs.
Render Apple .disk_label. -b, --bgcolor=COLOR use COLOR for background -c, --color=COLOR use COLOR for text -f, --font=FILE use FILE as font (PF2). -i, --input=

udevd(8) - event managing daemon (Admin - Linux man page)...
udevd.8 - systemd-udevd listens to kernel uevents. For every event, systemd-udevd executes matching instructions specified in udev rules. See udev(7). The behav

gnutls_x509_crl_get_issuer_dn(3) - API function (Man Page)
This function will copy the name of the CRL issuer in the provided buffer. The name will be in the form C=xxxx,O=yyyy,CN=zzzz as described in RFC2253. The outpu

We can't live, work or learn in freedom unless the software we use is free.