Steven Bethard <[EMAIL PROTECTED]> writes:

> Mike Meyer wrote:
>> That doesn't do what he wants, because it doesn't return until you hit
>> a newline.
> Of course if the intent is to have this work with terminal input, then
> yes, sys.stdin.read(1) is probably not going to do the right thing...

That's what the OP asked for - a way to wait for a single character,
like while(getchar()) in C.

Hmm. That tells me he's probably on a Windows box, so my unix solution
wouldn't do him much good.

         <mike
-- 
Mike Meyer <[EMAIL PROTECTED]>                  http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to