Python curses getch()

window.getch([yx])

Get a character. Note that the integer returned does not have to be in ASCII range: function keys, keypad keys and so on return numbers higher than 256. In no-delay mode, -1 is returned if there is no input, else getch() waits until a key is pressed.

原文地址:https://www.cnblogs.com/KennyRom/p/6306291.html