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 simpkins
Recipients simpkins
Date 2012-08-26.10:09:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345975778.97.0.705241878581.issue15785@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-08-26 10:09:39simpkinssetrecipients: + simpkins
2012-08-26 10:09:38simpkinssetmessageid: <1345975778.97.0.705241878581.issue15785@psf.upfronthosting.co.za>
2012-08-26 10:09:38simpkinslinkissue15785 messages
2012-08-26 10:09:37simpkinscreate