small lib to read keys from the keyboard in a linux console
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gunnar Zötl 15ab1e38a4 when composing a char does not have a result, return thee original sym instead of CKB_NONE 4 years ago
LICENSE initial commit 4 years ago
README initial commit 4 years ago
ckb_keyboard.c when composing a char does not have a result, return thee original sym instead of CKB_NONE 4 years ago
ckb_keyboard.h made meta modifiers work 4 years ago
ckb_keyname.c made meta modifiers work 4 years ago
ckb_keyname.h initial commit 4 years ago
kbdtest.c made meta modifiers work 4 years ago
mini_utf8.h fixed 2 warnings in ckb_keyboard.c 4 years ago

README

This is a small lib to read key events and chars from the keyboard in a linux console. It handles key modifiers and accents (dead keys), and is intended to be used with framebuffer applications. There is no documentation to speak of yet, look at the doc comments in the header files, and at kdtest.c for an example. The character codes are returned as unicode, insofar as the linux console supports this.

To use, just drop ckb_keyboard.* into your project and #include ckb_keyboard.h. There are no dependencies beyond standard linux stuff.