[Tutor] "Goto"-function

alan.gauld@bt.com alan.gauld@bt.com
Fri, 16 Mar 2001 09:58:27 -0000


> | > >>>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.

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... :-)