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.

 

posted @ 2017-01-19 13:43  KennyRom  阅读(836)  评论(0编辑  收藏  举报