title: IPython 5.0 and key bindings in console
body: <p>The new release of IPython does not depend any more on <code>readline</code> but uses the pure Python library <code>prompt-toolkit</code>, solving maintenance problems on Apple's and Windows' systems.</p>
  
  <p>A new feature is the ability to edit a multi-line code block, using the cursor keys to move freely in the code block — with this power it comes, at least for me, a problem: because a <kbd>ret</kbd> inserts a new line in your code, to pass the whole block to the interpreter you have to use the shortcut <kbd>alt</kbd>+<kbd>ret</kbd> or possibly the less convenient key sequence <kbd>esc</kbd> followed by <kbd>ret</kbd>.</p>
  
  <p>I say, this is a problem, because my terminal emulator of choice is the XTerm and, on many Linux distributions, the shortcut <kbd>alt</kbd>+<kbd>ret</kbd> is not passed to the application but it is directly used by the XTerm in which IPython is running, to toggle the screen-fullness of the said terminal (@ThomasDickey, xterm's mantainer and co-author pointed out that, by default, xterm doesn't care to send to the application the modifier bit on Enter even when one unbinds the Fullscreen action).</p>
  
  <p>For this reason I'd like to modify at least this specific IPython key binding.</p>
  
  <p>I've found instructions (sort of) for the previouos versions, the <code>readline</code> based ones, of IPython that do not apply to the new, 5.0 version.</p>
  
  <p>What I would need are instructions that lead me to find, in IPython's user documentation, the names of the possible actions that I can bind, the names of the shortcuts to bind with the actions and the procedure to follow to configure a new key binding.</p>
  
  <p>Failing to have this type of canonical answer, I <em>may</em> be happy with a recipe to accomplish this specific keybinding, with the condition that the recipe still works in IPython 6.0</p>