[Tutor] How can I clean the screen

Pujo Aji ajikoe at gmail.com
Mon Jan 23 10:11:48 CET 2006


Try :
import os
os.system('cls')


you will able to see the effect when you run in windows console.

Cheers,
pujo

On 1/23/06, Suri Chitti <SChitti at manh.com> wrote:
>
>
> Dear group,
>            If I am executing a python prog from the command line and
> need to clear the screen (like using the cls command at the windows cmd
> prompt) midway into the program, how do I do it??  Any inputs will be
> greatly appreciated.
> Thanks.
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060123/bb51d076/attachment.htm 


More information about the Tutor mailing list