---
name: "XtGetKeysymTable"
section: "3"
platform: "linux"
package: "libxt"
version: "1.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XtGetKeysymTable"
---

# XtGetKeysymTable(3)

query keysyms and keycodes

## NAME

XtGetKeysymTable, XtKeysymToKeycodeList - query keysyms and keycodes

## SYNTAX

\#include \<X11/Intrinsic.h\>

KeySym\* XtGetKeysymTable(Display\* *display*, KeyCode\* *min\_keycode\_return*, int \**keysyms\_per\_keycode\_return*);

void XtKeysymToKeycodeList(Display\* *display*, KeySym *keysym*, KeyCode\*\* *keycodes\_return*, Cardinal\* *keycount\_return*);

## ARGUMENTS

- *display*

  Specifies the display whose table is required.

- *min\_keycode\_return*

  Returns the minimum KeyCode valid for the display.

- *keysyms\_per\_keycode\_return*

  Returns the number of KeySyms stored for each KeyCode.

- *keysym*

  Specifies the KeySym for which to search.

- *keycodes\_return*

  Returns a list of KeyCodes that have *keysym* associated with them, or NULL if *keycount\_return* is 0.

- *keycount\_return*

  Returns the number of KeyCodes in the keycode list.

## DESCRIPTION

**XtGetKeysymTable** returns a pointer to the Intrinsics' copy of the server's KeyCode-to-KeySym table. This table must not be modified.

The **XtKeysymToKeycodeList** procedure returns all the KeyCodes that have *keysym* in their entry for the keyboard mapping table associated with *display*. The caller should free the storage pointed to by *keycodes\_return* using **XtFree** when it is no longer useful.

## SEE ALSO

*X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
