iTerm delete key when SSH'ing into Linux
I like using iTerm on the Mac (http://iterm.sourceforge.net) for SSH because it offers a number of improvements over the builtin terminal app. But one hassle is that the delete key (it's Delete on MacBooks, Backspace on Apple keyboards), when SSH'd into a Linux box, doesn't delete the character to the left but instead the character to the right. Here's how to change that:
1) Open iTerm and go to Bookmarks > Manage Profiles...
2) go to Keyboard Profiles > Global
3) Under Mapping click the plus (+) sign.
4) In the box select the following:
- Key: Delete
- Modifier:
- Action: send hex code
- In the box type the number eight: 8
5) Click OK.
Now when you SSH into a Linux box and use your Delete key it should delete the character to the left not the right of the cursor.
Note, if you want the other delete key (the small one near the number pad) to delete the character to the right, follow the steps above but for Key use "del" and for the hex code use "7F".
*This was tested and works with iTerm Build 0.9.5.0516
Keymaps - fun fun fun!
Excellent, thanks for this post... that was such an annoyance!
iTerm is quite nice though, and more features than I begin to use.
IniTerm 0.9.5.0517 under Leopard I had to change the Hex Code from 7F to 8 in the "xterm (OSX)" profile to get this to work.