On Tue, 8 Nov 2005 22:33:47 -0500, "Chris F.A. Johnson" <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list