reddit / emacs

What mode can print the all key codes generated in Emacs?

vfclists · 2022-10-13 17:24
When I toggle the command-log-buffer some of the key presses show up in brackets such as the up and down cursor keys showing as `<up>` and `<down>`, but the `home` and `end` keys don't. Is there some other mode that can detect them and print them? After checking the Doom issue log I see that `command-log-mode` has been replaced with `view-lossage` which does something similar, but just like `command-long-mode` it doesn't produce any output for the `home` and `end` keys. This the another mode or command that can detect and print out the `home` and `end` keys?
Alan_Shutko · 2022-10-13 17:47
It should show every keystroke that Emacs receives. Is it possible something else is swallowing home and end before it gets to Emacs?
sisyphus · 2022-10-13 18:41
If you do `C-h k` and then hit the home key does it show you anything? I see this: <home> runs the command move-beginning-of-line (found in global-map), which is an interactive compiled Lisp function in ‘simple.el’. It is bound to C-a, <home>. (move-beginning-of-line ARG)
vfclists · 2022-10-13 21:04
Thanks. I asked in relation to my problem at ["End" key results in "<select> is undefined" after updating to 24bit color gnu-screen. : emacs](https://www.reddit.com/r/emacs/comments/xxz1tg/end_key_results_in_select_is_undefined_after/) and it seems that the problem I'm having is the result of some strange interaction between Emacs, screen and KDE's konsole.