CLI ptpython: ctrl-c to erase current input
CLI is catching ctrl-c signal, then when typing in CLI:
def configure_repl(repl):
@repl.add_key_binding(Keys.ControlC, eager=True)
def _(event):
repl.stop_current_task()
it's then not possible to erase all the input with ctrl-c.
It should either erase the input or keep it and abort typing and going to the next line.
This is particularly annoying when pasting lots of wrong lines for example.