Note that most of the source for the linux extension was copied from: http://stackoverflow.com/questions/7469139/what-is-equivalent-to-getch-getche-in-linux Python 3 only, but should be trivial to port to python 2.