Single character input without pressing 'Enter'

Fredrik Lundh fredrik at pythonware.com
Wed Sep 20 13:37:44 CEST 2006


unni.tallman wrote:

> how can i read input from stdin, char by char, i want to get the
> character as soon as it is entered, without having to press 'Enter'
> after each character.

related FAQ entries:

http://pyfaq.infogami.com/how-do-i-get-a-single-keypress-at-a-time
http://pyfaq.infogami.com/how-do-i-check-for-a-keypress-without-blocking

(they should probably link to each other ;-)

</F>




More information about the Python-list mailing list