[Tutor] "Goto"-function

Jörg Wölke lumbricus@gmx.net
Fri, 16 Mar 2001 15:05:08 +0100 (MET)


> > | > >>>os.system('clear')
> > this is only for Unix systems.
> > 
> > | os.system('CLS')
> > and this is only for dos.
> > 
> > For everything, use :
> > print "\n" * 24
> 
> Nah, that only works for 24 line terminals 
> - xterms and VGA DIS screens(43 or 50 lines) won't work.
> 
> Clearing the screen is very terminal specific - which is 
> why there isn't a standard function for it in Python I guess.
> 

Is nobody out there using curses (to get rid of terminal depenency) anymore?
curses.clear()

> I think F/'s terminal(name?) module tries to take care 
> of most of these differences.
> 
> Alan G.
> who appreciates that D probably knows all that... :-)
> 
Grreetz all!! 

-- 
Sent through GMX FreeMail - http://www.gmx.net