[issue17700] Update Curses HOWTO for 3.4

2013-05-26 Thread A.M. Kuchling
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)

[issue17700] Update Curses HOWTO for 3.4

2013-05-16 Thread STINNER Victor
STINNER Victor added the comment: > Applied to 3.3 and 3.4. I'll leave this issue open > for a week so that Victor can comment on Unicode/wide-characters. I don't know (n)curses, but I tried to improve the curses module of Python. I added an encoding attribute which is the locale encoding by d

[issue17700] Update Curses HOWTO for 3.4

2013-05-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1fa70b797973 by Andrew Kuchling in branch '3.3': #17700: update the curses HOWTO for 3.x http://hg.python.org/cpython/rev/1fa70b797973 New changeset 70f530161b9b by Andrew Kuchling in branch 'default': #17700: merge with 3.3 http://hg.python.org/cpy

[issue17700] Update Curses HOWTO for 3.4

2013-05-09 Thread A.M. Kuchling
A.M. Kuchling added the comment: Applied to 3.3 and 3.4. I'll leave this issue open for a week so that Victor can comment on Unicode/wide-characters. -- ___ Python tracker ___

[issue17700] Update Curses HOWTO for 3.4

2013-05-09 Thread Ezio Melotti
Ezio Melotti added the comment: Patch LGTM. You should commit it to 3.3 and then merge it with default (unless the patch contains parts that are specific to 3.4). -- ___ Python tracker

[issue17700] Update Curses HOWTO for 3.4

2013-05-09 Thread A.M. Kuchling
A.M. Kuchling added the comment: I've just verified that I still have commit access to the repo, so unless someone has any further suggested changes to the patch, I'll go ahead and commit it to trunk. Should I also commit it to the 3.3 branch? Victor: I'm willing to improve the HOWTO's discus

[issue17700] Update Curses HOWTO for 3.4

2013-04-29 Thread A.M. Kuchling
A.M. Kuchling added the comment: Victor: I would like to add a section about using Unicode characters with curses, but found little material about doing that in either Python or the underlying C API. Do you have any suggested references or example code that I could look at? (It's probably be

[issue17700] Update Curses HOWTO for 3.4

2013-04-29 Thread STINNER Victor
STINNER Victor added the comment: window.get_wch() and curses.unget_wch(ch) should be used instead of window.getch() and curses.ungetch(ch), when available. They work much better with non-ASCII characters. -- nosy: +haypo ___ Python tracker

[issue17700] Update Curses HOWTO for 3.4

2013-04-29 Thread A.M. Kuchling
A.M. Kuchling added the comment: Updated version of the patch, applying many changes suggested by merwok: * use ~curses.funcname notation for links. * use 3-hyphen em-dash * minor fixes to various examples * rewrap long paragraphs (this makes the diff larger -- sorry!) -- Added file: ht

[issue17700] Update Curses HOWTO for 3.4

2013-04-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue17700] Update Curses HOWTO for 3.4

2013-04-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: Updated version of the patch: * Correct the errors reported in the review. * Restore 3-space indents. * Mention the LINES and COLS variables. * Add more links to the final section. I believe everything in the howto also applies to 3.3; it would be fine if you w

[issue17700] Update Curses HOWTO for 3.4

2013-04-11 Thread Éric Araujo
Éric Araujo added the comment: Do the changes (e.g. curses.wrapper new name) not apply to 3.3? -- nosy: +eric.araujo versions: +Python 3.4 ___ Python tracker ___

[issue17700] Update Curses HOWTO for 3.4

2013-04-11 Thread A.M. Kuchling
New submission from A.M. Kuchling: Here's a patch updating the Curses HOWTO for 3.4 that can be applied to the default branch. Changes: * curses.wrapper.wrapper is now just curses.wrapper * Mention window.encoding and its effect on Unicode. * Describe getkey() as well as getch() * Improve some