I cannot reproduce this with a recent 2.7 build from mercurial, but can reproduce with /usr/bin/python (2.7.2) on OSX 10.8 and python 2.7.3 on Centos 6.4 system.
I cannot reproduce it on Python 2.7.9+. I get the following output which is the expected output: --- -1 CTRL-C --- Since this bug is 8 years old. I guess that the bug was already fixed, or maybe it can only be reproduced on a specific platform. But the platform or the specific conditions to reproduce the issue were not described. I close this issue.
History
Date
User
Action
Args
2022-04-11 14:56:23
admin
set
github: 44769
2015-01-06 11:56:57
vstinner
set
status: open -> closednosy: + vstinnermessages: + resolution: out of date
assignee: akuchlingnosy: + akuchlingtitle: cannot catch KeyboardInterrupt when using curses getkey() -> cannot catch KeyboardInterrupt when using curses getkey()