Goto XY

David Wahler dwahler at
Wed Nov 9 02:56:58 CET 2005

ale.of.ginger at 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 but I haven't tested it

-- David

More information about the Python-list mailing list