getting keyboard input 1 char at a time

Greg Jorgensen gregj at io.com
Sun Oct 29 21:42:28 CET 2000


"John R Bedal" <jbedal at hotmail.com> wrote in message
news:aI%K5.11744$w6.5446784 at news3.rdc1.on.home.com...
> Is there a platform independant method for getting keyboard input one
> character at a time?

c = sys.stdin.read(1)

There's an example on page 79 of the book "Python Essential Reference."

--
Greg Jorgensen
Deschooling Society
Portland, Oregon, USA
gregj at pobox.com





More information about the Python-list mailing list