beckus/qemu_stm32

backspace key value

descent opened this issue · 2 comments

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

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

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