@jyn@tech.lgbt
it is 23:16 on a saturday night time to write a C program that binds to libevent hell yeah
it is 23:16 on a saturday night time to write a C program that binds to libevent hell yeah
oh my god i just found out that right-alt+<numpad numbers> on the raw linux tty inputs unicode??? https://www.reddit.com/r/linuxquestions/comments/xzuuhe/how_to_enter_arbitrary_unicode_characters_in/
this is incredible and also where on earth is it documented lmao
oh neat i found docs for this, although they donβt mention anything about unicode_start >:(
https://kbd-project.org/docs/howto-linux-keyboard-and-console/kbd-8.html#ss8.5
ok i have found that hex digits above 10 are NOT, as i had previously believed, the letters a-f on the keyboard. instead they are a weird mix of random symbols on the numpad lmao
; sudo dumpkeys | rg 'Hex_[A-F]' -B1 | rg KP_'|Num' -A1 | rg -v -- --
keycode 55 = KP_Multiply
altgr keycode 55 = Hex_C
keycode 69 = Num_Lock
altgr keycode 69 = Hex_A
keycode 74 = KP_Subtract
altgr keycode 74 = Hex_D
keycode 78 = KP_Add
altgr keycode 78 = Hex_E
keycode 96 = KP_Enter
altgr keycode 96 = Hex_F
keycode 98 = KP_Divide
altgr keycode 98 = Hex_B
also i can't get them to work. can anyone running linux get the following thing to work?
ctrl+alt+f3 to switch to a new virtual console
run fbterm so you can see unicode sequences. (if this is a pain to install, you can also just paste the output from hexdump - use Ctrl-D to exit, not Ctrl-C)
run hexdump -C so your shell doesn't interpret escape sequences
press right alt (or alt-gr if it's on your keyboard), and simultaneously type 1234 on the numpad
it should print α (unicode hex). unfortunately mine only prints Ρ (unicode decimal) :(
oh goddammit i have found the issue
keycode 100 should be set to AltGr
; sudo dumpkeys | rg '= [aA]lt'
keycode 56 = Alt
keycode 100 = Alt
keycode 125 = Alt
keycode 126 = Alt
something is terribly wrong