beckus / qemu_stm32

QEMU with an STM32 microcontroller implementation
http://beckus.github.io/qemu_stm32/
Other
524 stars 144 forks source link

backspace key value #5

Closed descent closed 9 years ago

descent commented 9 years ago

I test P103 uart, when press backspace get 127, but backspace should be 8.

beckus commented 9 years ago

I haven't had a chance to look at this yet, but will try to soon...

beckus commented 9 years ago

I was able to duplicate this on my Ubuntu 12.04 machine. I see that 127 is the Delete key. I found several referecnes that explain this is an issue with Linux - when the backspace key is pressed, it sends the delete key instead. I have included some links below, which describe the problem, and also offer some workarounds.

http://stackoverflow.com/questions/18667833/configure-backspace-key-properly-in-vi http://www.ibb.net/~anne/keyboard/keyboard.html http://vim.wikia.com/wiki/Backspace_and_delete_problems