Sending ctrl+function key on iTerm2
I had exactly the same issue and it seems to have been solved in the latest iTerm2. But if your profile was created before the fix like mine, a little configuration is needed:


Go to Preferences -> Profiles -> &lt;Your Profile&gt; -> Terminal, make sure 'Report terminal type' is set to xterm-256color (or xterm)
Go to Preferences -> Profiles -> &lt;Your Profile&gt; -> Keys, click Presets -> xterm Defaults


And then you can see ^F1 ... ^F12 being correctly mapped: