Goto XY

Chris F.A. Johnson cfajohnson at
Wed Nov 9 07:11:07 CET 2005

On 2005-11-09, Grant Edwards wrote:
> On 2005-11-09, Chris F.A. Johnson <cfajohnson 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)
>> You can use curses, but that may be more trouble than it's worth.
> In which case you could always use tput -- and it will still be
> portable.

   Not necessarily. There are differences in tput from system to
   system, not to mention how much it slows things down to call it for
   every sequence you need.

   Then there are some old systems which don't have tput.

  Chris F.A. Johnson                   | Author:
  <>          |      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