getch in python

Eric Brunel eric.brunel at
Tue Sep 3 09:57:16 CEST 2002

Venkat Venkataraju wrote:

> Hi All
> Is there any function that behaves like getch() function in C?
> Venkat

Seems like this is what you want:

import sys
c =

On EOF, c is just ''.

- Eric Brunel <eric.brunel at> -
PragmaDev : Real Time Software Development Tools -

More information about the Python-list mailing list