Message91816
| Author |
inigoserna |
| Recipients |
inigoserna |
| Date |
2009年08月21日.11:43:29 |
| SpamBayes Score |
2.4665446e-06 |
| Marked as misclassified |
No |
| Message-id |
<1250855012.37.0.745791721367.issue6755@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Currently,there is no a simple way in curses bindings to get the code
associated with a key press of non ascii keystroke (f.e. ç) in terminals
configured with UTF-8 encoding.
getch returns the code for a wide character byte a byte.
But ncurses library has a proper function to do it: get_wch.
Patch against Python v2.6.2 to provide this missing get_wch method
in the ncurses bindings.
Include a test example and a patch to the documentation as well.
More info and a partial solution without patching python curses module
on this thread:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/67dce30f0a2742a6?fwc=2 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年08月21日 11:43:32 | inigoserna | set | recipients:
+ inigoserna |
| 2009年08月21日 11:43:32 | inigoserna | set | messageid: <1250855012.37.0.745791721367.issue6755@psf.upfronthosting.co.za> |
| 2009年08月21日 11:43:30 | inigoserna | link | issue6755 messages |
| 2009年08月21日 11:43:29 | inigoserna | create |
|