[IPython-User] Making Control-D work when the line is not clear

Fernando Perez fperez.net@gmail....
Tue Oct 18 19:28:32 CDT 2011


On Tue, Oct 18, 2011 at 5:17 PM, Aaron Meurer <asmeurer@gmail.com> wrote:
>
> All I found was the binding vi-eof-maybe, which I couldn't find any
> documentation on, but if I set control-D to do it, it acts like enter
> if text is on the line and like control D otherwise.  It's hard to
> tell if this is what it's supposed to do or if IPython is just not
> recognizing the EOF with other text.

We don't look at the line, we simply get an EOFError exception from a
raw_input() call.  So if it's not exiting, it's because readline isn't
propagating an EOF condition.

Cheers,

f


More information about the IPython-User mailing list