[Python-Dev] getch() in msvcrt does not accept extended characters.

Fredrik Lundh fredrik at pythonware.com
Wed Jun 29 15:11:33 CEST 2005


Darryl Dixon wrote:

> Microsoft support capturing extended characters via _getch, but it requires making a
> second call to getch() if one of the 'magic' returns is encountered in the first call (0x00
> or 0xE0).

so why not do that in your python code?

> The relevant chunk of code in Python that would probably need to be
> changed to support this appears to be in msvcrtmodule.c:

if you change msvcrt, you'll break all the programs that uses getch() in
the prescribed way...

</F> 





More information about the Python-Dev mailing list