equivalent of getch
Gurvijay Singh Bhatti
khalsa at acay.com.au
Thu Aug 26 06:30:43 EDT 1999
Ok, I understand now that getch is not a C function, but still I don't know how to
wait for "enter" in JPython?
Kaz Kylheku wrote:
> On 25 Aug 1999 12:48:40 GMT, Markus Fleck <fleck at informatik.uni-bonn.de> wrote:
> >Gurvijay Singh Bhatti <khalsa at acay.com.au> wrote:
> >> could someone tell me what is equivalent of getch in jpython? I want the
> >> program to wait for the user to hit enter before going forward.
> >
> >AFAIK, this cannot be done in Java. I would
> >be surprised if it could be done in JPython.
>
> Note that waiting for enter doesn't require character-at-a-time input. There
> is no getch() function in C, but if all you want is to wait for enter, you
> would use, say, fgets().
More information about the Python-list
mailing list