A simple way to print few line stuck to the same position

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Jun 3 08:42:32 EDT 2011


On Fri, 03 Jun 2011 19:00:22 +0800, TheSaint wrote:

> Steven D'Aprano wrote:
> 
>> def spinner():
>> chars = '|/-\\'
> 
> Not exactly.
> I'd like to show 4~6 line of report and refreshing periodically all of
> them, avoiding to scroll down.


You have to use the curses module for that.


-- 
Steven



More information about the Python-list mailing list