summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-07-14 23:07:44 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-07-14 23:07:44 +0200
commit4a58d0a03ab09094f5c8ba93dd2a5df560998cec (patch)
tree04548c2658e1b2d18cc46e390de6f6b1bcb1b6ab /Doc
parentd5a43e95c806f99b35a18ef880e7e6bab05b6eb9 (diff)
downloadcpython-4a58d0a03ab09094f5c8ba93dd2a5df560998cec.tar.gz
Close #6755: Add get_wch() method to curses.window class
Patch by Iñigo Serna.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/curses.rst8
-rw-r--r--Doc/whatsnew/3.3.rst8
2 files changed, 16 insertions, 0 deletions
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index 16b7681661..34504949fa 100644
--- a/Doc/library/curses.rst
+++ b/Doc/library/curses.rst
@@ -846,6 +846,14 @@ the following methods:
until a key is pressed.
+.. method:: window.get_wch([y, x])
+
+ Get a wide character. Like :meth:`getch`, but the integer returned is the
+ Unicode code point for the key pressed, so it can be passed to :func:`chr`.
+
+ .. versionadded:: 3.3
+
+
.. method:: window.getkey([y, x])
Get a character, returning a string instead of an integer, as :meth:`getch`
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 0498ca8505..051d165e41 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -91,6 +91,14 @@ versions.
(:issue:`12100`)
+curses
+------
+
+The :class:`curses.window` class has a new :class:`~curses.window.get_wch`
+method to a wide character. Patch by Iñigo Serna.
+
+(:issue:`6755`)
+
faulthandler
------------