getch() in Python

Gerhard Häring gh at
Tue Sep 16 11:23:59 CEST 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

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