Goto XY

David Wahler dwahler at gmail.com
Tue Nov 8 20:56:58 EST 2005


ale.of.ginger at gmail.com wrote:
> Is there some command in python so that I can read a key's input and
> then use a gotoxy() function to move the cursor on screen?  e.g.:
> (psuedo-code)
>
> When the right arrow is pushed, cursor gotoxy(x+1,y)
>
> Thanks.

On Unix-like platforms, this functionality is provided by the standard
curses module. A similar module for Windows appears to be available at
http://www.effbot.org/zone/console-index.htm but I haven't tested it
out.

-- David




More information about the Python-list mailing list