XtGetKeysymTable(3)
β¨ XtGetKeysymTable(3) β¨
okay bestie, we're in the XT FUNCTIONS section of the manual, and today's episode is querying keysyms and keycodes π like, the keyboard lore, the mapping tea. let's get into it π«Ά
πΈ 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);
literally copy these exact signatures into your code, no cap, don't freestyle the types π
π¦ ARGUMENTS π¦
displayβ tells us which display's table we're asking about. it's giving "which screen, bestie?" β¨min_keycode_returnβ on the way out, this holds the smallestKeyCodethat's valid for the display. returns it to you πkeysyms_per_keycode_returnβ on the way out, this holds how manyKeySyms are stored for eachKeyCode. yeah, each keycode can have a lil squad of keysyms πkeysymβ theKeySymyou're hunting for. the one we're searching πkeycodes_returnβ on the way out, this is a list of theKeyCodes that havekeysymassociated with them. orNULLifkeycount_returnis0π«₯keycount_returnβ on the way out, this is how manyKeyCodes are in that list. the count, the receipts, the number π
π DESCRIPTION π
XtGetKeysymTable hands you back a pointer to the Intrinsics' own copy of the server's KeyCode-to-KeySym table. it's the table, the whole vibe check of your keyboard mapping.
β οΈ bestie, listen: this table must not be modified. do not touch. do not edit. hands off. it's not yours, it's the Intrinsics', and messing with it is not the move π periodt.
XtKeysymToKeycodeList is the other one β it returns all the KeyCodes that have keysym sitting in their entry for the keyboard mapping table associated with display. like, every single keycode that reps that keysym π
and then, when you're done with it, the caller should free the storage that keycodes_return points to, using XtFree. yes, that's on you. clean up after yourself, queen π§Ήπ
π SEE ALSO π
- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
and that's the whole page, bestie!! πβ¨ this one's from X Version 11, libXt 1.3.1 β shoutout to the libXt girlies keeping your keyboard mappings iconic since forever π mwah, go free your keycodes_return storage ππ¦
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright (c) 1993, 1994 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms