How can I remap control+e to escape+control+e in iTerm2?

Posted by cwd on Super User See other posts from Super User or by cwd
Published on 2012-07-05T17:36:04Z Indexed on 2012/09/01 9:41 UTC
Read the original article Hit count: 209

Filed under:
|
|
|
|

I have set up a few custom keyboard shortcuts in iTerm2 to easily move the cursor around with the arrow keys, but now I'd like to remap control+e to be escape, control+e because bash 4.2 no longer auto-expands variables using the tab key.

I know I've done the first part correctly in choosing the keyboard shortcut to remap, but I don't understand how to look up the correct escape sequence (or hex codes) to send in the bottom section:

Picture.png

I reference they keyboard codes but that wasn't much help.

How can I remap this, and how can I look up the codes in the future? (No luck with Google)

Update

@db - thanks. To save others trouble I also found a cool util Key Codes.app which can be used to find key codes:

Picture.png

© Super User or respective owner

Related posts about osx

Related posts about mac