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.

作者 simpkins
收信人 simpkins
日期 2012-08-26.10:09:37
SpamBayes Score -1.0
Marked as misclassified
Message-id <1345975778.97.0.705241878581.issue15785@psf.upfronthosting.co.za>
In-reply-to
内容
The curses.get_wch() function does not check if wget_wch() returned OK or KEY_CODE_YES.  In either case, it simply returns the character code.

This makes get_wch() unusable when keypad is enabled, because the caller cannot distinguish function key or arrow key presses from real unicode code points.  For example, get_wch() returns 259 both for an up arrow press and for the input character 'ă'.

It seems like this API needs to be redesigned somehow to allow terminal keypad codes to be distinguished from unicode input.
历史
日期 用户 动作 参数
2012-08-26 10:09:39simpkins修改recipients: + simpkins
2012-08-26 10:09:38simpkins修改messageid: <1345975778.97.0.705241878581.issue15785@psf.upfronthosting.co.za>
2012-08-26 10:09:38simpkins链接issue15785 messages
2012-08-26 10:09:37simpkins创建