homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:58adminlinkissue633635 messages
2007年08月23日 15:17:58admincreate

AltStyle によって変換されたページ (->オリジナル) /