capturing ESC, page up/down in Python

jordilin jordilin at gmail.com
Sun Oct 26 17:46:14 EDT 2008


Is there any way to capture the keyboard events ESC, page up (next
page), page down (previous page) in Python?. I mean, how can I capture
if user presses one of those keys in a terminal based application? I
was thinking about pygame.key.get_pressed from the pygame module, but
I don't feel really happy about importing pygame in a non related game
project.



More information about the Python-list mailing list