Message41572
| Author |
dmcooke |
| Recipients |
| Date |
2002年11月05日.05:07:14 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
The C prototype for getch is 'int getch(void)', not
'chtype getch(void)', as assumed by _cursesmodule.c
(the same for ungetch and keyname). [I've checked this
under Linux, SunOS, and Tru64]
keyname() seems to segfault if passed -1, so I've
tested for that.
In addition, according to the docs, the .getch() and
.getkey() methods of a window object should throw an
exception when there isn't any input in nodelay mode
(the C functions return ERR (== -1) in this case). I've
fixed getkey, but not getch, in this patch: since getch
returns an int anyways, it seems better to return -1 on
no input.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:17:58 | admin | link | issue633635 messages |
| 2007年08月23日 15:17:58 | admin | create |
|