[Tutor] Getchr() in Msvcrt module

Riumu Kuraku cyresse at gmail.com
Tue Oct 12 09:05:09 CEST 2004


Hello all,

I'm playing around with getchar(), and I'm following Alan Gauld's tutorial.

He states that characters read by getchar that are prefixed with 
'\x00' or '\xe0' are non-ASCII such as the function keys.

Is Enter one of these keys? Space is obviously " ", but is Enter "\n" 
or something else?

 Is there somewhere in Python's documentation a list of how the keys
such as Esc etc. are defined in ASCII/non-ASCII

Apologies for the multiple questions.

Thanks,

Liam


More information about the Tutor mailing list