iTerm delete key when SSH'ing into Linux

Posted by ryan on Thu, 05/17/2007 - 06:48 in

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!

Keymaps - fun fun fun!

colin's picture
Posted by colin on Thu, 05/17/2007 - 07:16
Excellent, thanks for this post... that was such an annoyance! i

Excellent, thanks for this post... that was such an annoyance!
iTerm is quite nice though, and more features than I begin to use.

Posted by michaelm (not verified) on Sun, 05/20/2007 - 18:08
IniTerm 0.9.5.0517 under

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.

Posted by random yacko (not verified) on Mon, 12/03/2007 - 17:12
Post new comment
The content of this field is kept private and will not be shown publicly.