summaryrefslogtreecommitdiff
path: root/Doc/library/curses.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-06 01:53:03 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-06 01:53:03 +0200
commita063ffe28cbec516460a7ecc64fa44d892027a92 (patch)
tree0c678e85afb950138c451859faf1fc3346cd4fcd /Doc/library/curses.rst
parent0cd178d0e4c72736343aa268cc2cbe5f2c1bb6dc (diff)
downloadcpython-a063ffe28cbec516460a7ecc64fa44d892027a92.tar.gz
Issue #12567: Add curses.unget_wch() function
Push a character so the next get_wch() will return it.
Diffstat (limited to 'Doc/library/curses.rst')
-rw-r--r--Doc/library/curses.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index f27b2ff1c0..df259109c6 100644
--- a/Doc/library/curses.rst
+++ b/Doc/library/curses.rst
@@ -598,6 +598,17 @@ The module :mod:`curses` defines the following functions:
Only one *ch* can be pushed before :meth:`getch` is called.
+.. function:: unget_wch(ch)
+
+ Push *ch* so the next :meth:`get_wch` will return it.
+
+ .. note::
+
+ Only one *ch* can be pushed before :meth:`get_wch` is called.
+
+ .. versionadded:: 3.3
+
+
.. function:: ungetmouse(id, x, y, z, bstate)
Push a :const:`KEY_MOUSE` event onto the input queue, associating the given