I had some problems with Terminal.app in OSX when my backspace key didn't have backspace behaviour. Basically, pressing backspace caused a delete instead. In Terminal you can fix this by going to Preferences/Settings/Advanced and ticking 'Delete sends Control-H' which works on all the servers that I SSH into.
I have now shifted to iTerm2 How do I do the same thing on iTerm2?
Many thanks.
Linux and XFree86 come configured with both the Backspace and Delete keys generating Delete. You can fix this by using any one of the xmodmap, xkeycaps, or loadkeys programs to make the key in question generate the BackSpace keysym instead of Delete.
Checking Terminal Settings with stty The -a flag will give a human-readable output of the control characters. Look for the "erase" character. If it says "^H," then it uses the older Backspace character. Fortunately, you can also fix this with the stty command.
The key combination for the ASCII backspace control character is ^H (hold down Ctrl and press H . However, pressing this combination on the shell command line simply performs the "backspace" operation.
Ok, fixed already sorry! For anyone else who needs this:
iTerm2 -> Preferences -> Keys -> Key Mappings -> click on the + symbol
-> Click to Set -> press backspace -> select 'Send ^H Backspace'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With