How to input one char at a time from stdin?

Brent W. Hughes brent.hughes at comcast.net
Tue Jan 25 14:38:13 EST 2005


I'd like to get a character from stdin, perform some action, get another 
character, etc.  If I just use stdin.read(1), it waits until I finish typing 
a whole line before I can get the first character.  How do I deal with this?

Brent





More information about the Python-list mailing list