Goto XY

Chris F.A. Johnson cfajohnson at gmail.com
Wed Nov 9 00:30:21 EST 2005


On 2005-11-09, Jean-Paul Calderone wrote:
> 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

    More or less; probably much less.

-- 
  Chris F.A. Johnson                   | Author:
  <http://cfaj.freeshell.org>          |      Shell Scripting Recipes:
  Any code in this post is released    |  A Problem-Solution Approach,
  under the GNU General Public Licence |                 2005, Apress



More information about the Python-list mailing list