[Tutor] (no subject)

Kirk Bailey idiot1@netzero.net
Fri Dec 20 23:17:02 2002


ASSUMING you are running unix, the opsys command 'clear' will do it.

In the os module:
system(command)
Execute the command (a string) in a subshell. This is implemented by calling 
the Standard C function system(), and has the same limitations. Changes to 
posix.environ, sys.stdin, etc. are not reflected in the environment of the 
executed command. The return value is the exit status of the process encoded 
in the format specified for wait(), except on Windows 95 and 98, where it is 
always 0. Note that POSIX does not specify the meaning of the return value of 
the C system() function, so the return value of the Python function is 
system-dependent. Availability: Unix, Windows.

so 'os.system('clear') ought to clear the console screen. This is NOT how to 
do it if you are trying to create a blank screen on a script generated web page!

If THAT is what you want, gin up  how you woould do it in a plain vanilla html 
page, then spew that out from the script.

Hope this helps.

Maarten Mulders wrote:
> Is there a command that clears the complete (shell)screen, like ClrScr 
> or CLS or something?
> 
> _________________________________________________________________
> MSN Zoeken, voor duidelijke zoekresultaten! 
> http://search.msn.nl/worldwide.asp
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 


-- 

end

Respectfully,
              Kirk D Bailey


+---------------------"Thou Art Free." -Eris-----------------------+
| http://www.howlermonkey.net  mailto:highprimate@howlermonkey.net |
| KILL spam dead!      http://www.scambusters.org/stopspam/#Pledge |
| http://www.tinylist.org  +--------+   mailto:grumpy@tinylist.org |
+------------------Thinking| NORMAL |Thinking----------------------+
                            +--------+

---------------------------------------------
Introducing NetZero Long Distance
1st month Free!
Sign up today at: www.netzerolongdistance.com