getch() in Python

Gerhard Häring gh at ghaering.de
Tue Sep 16 05:23:59 EDT 2003


Jozsa Boti wrote:
> Hi!
>  
> Is there a getch()-like function in Python that is OS independent?
> I understand that msvcrt.getch() is available only under Windows.

The first Google hit leads to 
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/134892

which is probably as cross-platform as you can get.

Oh, and please use plain text in your messages, not HTML.

-- Gerhard





More information about the Python-list mailing list