Closed ezekg closed 5 years ago
I get C-8
for backspace on Linux as well.
Should be fixed now with 7b48d56e0b4ad4aa2c69674c596ef528143cccda on master. Do note that termui has basically been rewritten up to that point so there's a lot of breaking changes.
Also, <C-8>
, along with a bunch of other keys, are guaranteed not to work due to how termbox-go presents keyboard events. Basically, both <C-8>
and <Backspace>
are represented by the same identifier, so we have to pick which one to use unfortunately.
Example program
Expected behavior
For
/sys/kbd/<backspace>
to listen for backspace events. Pressinga
,b
,c
,backspace
,enter
on the keyboard should print the following:Actual behavior
Backspace emits a
C-8
event instead of<backspace>
. Pressinga
,b
,c
,backspace
,enter
on the keyboard prints the following: