A.M. Kuchling added the comment:
I can't make sense of unget_wch. I used this test program:
--------
import curses
def main(stdscr):
stdscr.addstr(0,0, "Key")
stdscr.refresh()
curses.ungetch(0x0149)
while True:
ch = stdscr.get_wch()
stdscr.addstr(1,1, repr(ch) + ' ')
if ch == 'q':
break
curses.wrapper(main)
--------
If I use curses.unget_wch(chr(0x0149)), the following get_wch() call returns
-119, not 0x149.
The whole area of wide character support in curses is just a mystery, and I
don't know how to resolve my questions. I'll close this item, since I have
nothing further to add to the curses howto.
----------
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17700>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com