mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #12567: Add curses.unget_wch() function
Push a character so the next get_wch() will return it.
This commit is contained in:
parent
d4d8ae5a42
commit
71e44cb97f
4 changed files with 97 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue