cursor positioning

Larry Bates lbates at syscononline.com
Mon Jul 11 10:11:58 EDT 2005


While not "curses" based this class will update screen as you
want.  You could use it as a basis upon which to do a curses
version with your cursor positioning.

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299207

-Larry Bates

Mage wrote:
>          Dear All,
> 
> I am writing a database import script in python and I would like to
> print the percentage of the process to the last line. I would like to
> update the last line at every percent. You know what I mean.
> 
> How can the cursor be positioned to the last line or somewhere else on
> the screen? Curses starts with clearing the whole screen and it is
> overkill. Many modules are on the net but I would like to resolve this
> simply task with native python.
> 
> I tried:
> 
> for something:
>     print chr(8)*20+mystring,
> 
> but it is nasty and didn't work well.
> 
>           Mage
> 



More information about the Python-list mailing list