Dear #linux power users.
Does anyone know how keyboard ev-dev inputs (ie /dev/inputX) are translated to the correct characters using the default kernel keymap (/usr/src/linux/drivers/char/defkeymap.map) in terminal mode (ie. no X11 nor wayland)?
I am confused and cannot find this answer on the internet and I'm too afraid to read any kind of linux kernel code...
(could you please boost if you do not have the answer, thanks!)
@ninjatrappeur with keyboard.c there's a mapping from scancodes to the actual key in a hardcoded table.
@ckeen Oh yes!
@ckeen (oops, pressed enter too soon)
Thanks! I owe you a drink.
@ninjatrappeur That's in kdb though, you might want to look into drivers/tty/keyboard.c
@ninjatrappeur Sorry, drivers/tty/vt/keyboard.c I meant...
Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!