curses-library bug? Help!

Andrew Kuchling akuchlin at
Tue Aug 7 22:25:16 CEST 2001

teo at (teo) writes:
>   if ch == curses.KEY_ENTER:

I'm not sure under what circumstances KEY_ENTER is actually returned;
perhaps it only appears on some exotic terminals.  You'd have to ask
an ncurses or termcap-related mailing list to find it. I've always
found that the Enter key causes ASCII 10 to be returned, and changing
the above statement to 'if ch == 10' causes it to work the way I'd


More information about the Python-list mailing list