PyDocs

Nav

Command-line interface libraries

window.get_wch

curses

method of window · Added in 3.3not Androidnot iOSnot WASI
  • window.get_wch([y, x])
get_wch([y, x])
Read a key press and return it as a one-character str.

  y
    Y-coordinate.
  x
    X-coordinate.

Wait until a key is pressed, or raise curses.error if the read is
non-blocking or times out.

In keypad mode function keys and other special keys are returned as
one of the KEY_* constants, an integer.  Otherwise their characters
are returned one at a time.
0 Examples
No examples for curses/window.get_wch.
See Also
No see-alsos for curses/window.get_wch
0 Notes
No notes for window.get_wch