PyDocs

Nav

Command-line interface libraries

window.getkey

curses

method of windownot Androidnot iOSnot WASI
  • window.getkey([y, x])
getkey([y, x])
Read a key press and return it as a str.

  y
    Y-coordinate.
  x
    X-coordinate.

Read as getch() does, but return an ordinary key as a one-character
string, the byte decoded as Latin-1, and a special key as its name,
such as 'KEY_UP'.  Raise curses.error instead of returning -1 if
there is no input.
0 Examples
No examples for curses/window.getkey.
See Also
No see-alsos for curses/window.getkey
0 Notes
No notes for window.getkey