RustPython
RustPython copied to clipboard
the rustpython console ignore ctrl + c if I insert a new line while reading sys.stdin

Hmm, std::io::Stdin::read() probably catches the interrupt and retries rather than just erroring.
^CTraceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: Interrupted system call (os error 4)
Readline error: Errno(Sys(EBADF))
with latest version
#5539 May be a helpful starting point to those who want to fix this issue.