curses-library bug? Help!

Andrew Kuchling akuchlin at mems-exchange.org
Tue Aug 7 22:25:16 CEST 2001


teo at crepido.com (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
expect.

--amk





More information about the Python-list mailing list