Goto XY
Jean-Paul Calderone
exarkun at divmod.com
Tue Nov 8 23:48:35 EST 2005
On Tue, 8 Nov 2005 22:33:47 -0500, "Chris F.A. Johnson" <cfajohnson at gmail.com> wrote:
> [snip]
>
> To read a single keystroke, see Claudio Grondi's post in the
> thread "python without OO" from last January.
>
> Function and cursor keys return more than a single character, so
> more work is required to decode them. The principle is outlined in
> <http://www.unixreview.com/documents/s=9920/ur0511a/ur0511a.html>;
> the code there is for the shell, but translating them to python
> should be straightforward. I'll probably do it myself when I have
> the time or the motivation.
>
Like this?
http://cvs.twistedmatrix.com/cvs/trunk/twisted/conch/insults/insults.py?view=markup&rev=14863
Jean-Paul
More information about the Python-list
mailing list