Fix ctrl-c behaviour
Currently, when pressing Ctrl-C in ion it just breaks into a new line with one more indentation level which is probably not intended.
This MR adds a ctrl_c_pressed
bool to the InteractiveShell
which gets set in the readln
function where Ctrl-C and Ctrl-D are handled and gets reset after every REPL-Loop.
If the bool is set the prompt just assumes it has not indentation and prints accordingly.
After this merge request ion works fine as a zsh replacement for me