Ctrl-c not working? #10096

Closed
pikeas opened this Issue Dec 19, 2016 · 5 comments

Projects

None yet

3 participants

@pikeas
pikeas commented Dec 19, 2016

macOS Sierra 10.2.1, multiple versions of Python (2.7.12/3.5.2), iPython 5.1.0.

Expected: ctrl-c creates a new line.
Actual: nothing happens.

Other control commands, for example ctrl-d to exit, are working, only ctrl-c appears to be broken.

@takluyver
Member

Ctrl-C while code is running should interrupt it. While you're typing code, it should clear the input. If the input is already empty, you won't see anything change. Is this what you mean? This is a change from earlier versions of IPython, but it is intentional.

@willingc
Member

On Sierra 10.2.2, Ctrl-C works as described by @takluyver. Question for @takluyver: is there a key combination to create a new line?

@takluyver
Member

If your input is incomplete (e.g. def f():), pressing enter will get you a new line. We don't currently have a shortcut to force adding a new line. The obvious ones are with enter, but the only one we can detect is esc, enter (also alt+enter on some systems), which is in use for the opposite case: force execution where it would otherwise try to add a new line.

@willingc
Member

@takluyver Thanks for the additional detail.

@takluyver takluyver added this to the no action milestone Jan 13, 2017
@takluyver
Member

Closing as no further details turned up, and Carol couldn't reproduce any problem.

@takluyver takluyver closed this Jan 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment