RustPython icon indicating copy to clipboard operation
RustPython copied to clipboard

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

Open andrew-ld opened this issue 5 years ago • 3 comments

Screenshot_20200730_181706

andrew-ld avatar Jul 30 '20 16:07 andrew-ld

Hmm, std::io::Stdin::read() probably catches the interrupt and retries rather than just erroring.

coolreader18 avatar Jul 30 '20 17:07 coolreader18

^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

andrew-ld avatar Feb 07 '21 18:02 andrew-ld

#5539 May be a helpful starting point to those who want to fix this issue.

JazzGlobal avatar Oct 30 '25 00:10 JazzGlobal