getch() of Turbo C in Python?

Alex Martelli aleaxit at yahoo.com
Thu Jun 7 16:19:06 EDT 2001


"Anurag Ved" <anuragved at vsnl.com> wrote in message
news:fa4233c9.0106071108.7b1c4ed8 at posting.google.com...
    ...
> Is there something similar to the getch() function of Turbo C which
> reads just one key from <stdin> and returns immediately?

Yes, it's called getch() and is exported from module msvcrt (in
Windows versions of Python).


Alex






More information about the Python-list mailing list