[Tutor] key detection

Mark Lawrence breamoreboy at yahoo.co.uk
Wed May 6 06:51:54 CEST 2015


On 06/05/2015 05:30, Jim Mooney Py3.4.3winXP wrote:
> On 5 May 2015 at 18:32, Steven D'Aprano <steve at pearwood.info> wrote:
>
>> https://code.activestate.com/recipes/577977-get-single-keypress/
>
>
> That only has a stub for Linux,  but I found one that does both. Although,
> alas, no IOS version:
>
> http://code.activestate.com/recipes/134892-getch-like-unbuffered-character-reading-from-stdin/
>
> Anyway, I set up msvcrt for now until I install linux - I'm not interested
> in the program I mentioned, per se, just the error message - mainly to
> know, generally, what sort of thing it's choking on. Errors are useful to
> know.
>

I went a further step from the recipes linked to above and got here 
https://pypi.python.org/pypi/readchar

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list