Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parsing a key out of a key code

I am getting key events that contain asci key codes and I was wondering if there was any easy way to convert these to the actual key or character in common lisp. I am using the ccl implementation which does not include int-char (which may or may not have worked for this task).

like image 930
Mike2012 Avatar asked Dec 03 '25 19:12

Mike2012


1 Answers

You can use the code-char function. It will return the character encoded by given integer. Bear in mind that CCL uses Unicode, not pure 7-bit ASCII.

like image 145
dmitry_vk Avatar answered Dec 06 '25 09:12

dmitry_vk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!