Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Control+Return key bound to a function that I use very often. This works when i run emacs in x-windows. But when I run emacs in iTerm2 control+return just has the effect of line-feed (i.e as if I have just hit enter without holding the control key down). i have tried different variation of this in emacs

(global-set-key (kbd "<C-return>") 'duplicate-line)

(global-set-key (kbd "C-RET") 'duplicate-line)

(global-set-key [(control return)] 'duplicate-line)

None of them seem to work in iTerm/emacs. I'm not sure if this a emacs terminal mode problem or a problem with iTerm2. I don't want to bind this to any other complex key sequence as I use this very often.

How to get Ctrl+return key binding for emacs in iTerm2 working?

share|improve this question

I just did a quick test of emacs in iTerm2 and Terminal. Both see CTRL-RET as simply RET.

I did this with CTRL-h k to see what the key is bound to.

share|improve this answer
And? What did you conclude? I knew it was sees CRTL+RET as just RET. Simple way to test it is C-h k C-RET and you will see it shows help for RET. My question was how to fix this problem. – Raghu Oct 22 '12 at 10:29
Sorry, looks like I misread your question and so I didn't really answer it. – verdammelt Oct 22 '12 at 11:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.