diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-05 23:53:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-05 23:53:03 (GMT) |
commit | 71e44cb97ffaaa3a777477aa6dcb0b0f29c9eda4 (patch) | |
tree | c0d3cf142d5142d2f9a374512af64287add19353 /Doc | |
parent | d4d8ae5a42ac859c95bdcb2a608c1b972c56efac (diff) | |
download | cpython-71e44cb97ffaaa3a777477aa6dcb0b0f29c9eda4.zip cpython-71e44cb97ffaaa3a777477aa6dcb0b0f29c9eda4.tar.gz cpython-71e44cb97ffaaa3a777477aa6dcb0b0f29c9eda4.tar.bz2 |
Issue #12567: Add curses.unget_wch() function
Push a character so the next get_wch() will return it.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/curses.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index f27b2ff..df25910 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 |