Can Python clear a DOS screen?

Sam Schulenburg samschul at pacbell.net
Thu Jan 18 17:39:49 EST 2001


The folowing works for me.

import os
os.system('cls')

Sam Schulenburg

In article <mailman.979855434.16210.python-list at python.org>,
  "Rolander, Dan" <Dan.Rolander at marriott.com> wrote:
> I've got a Python script that writes to a DOS console. Is it possible
to
> have the script clear the screen?
>
> Thanks,
> Dan
>
>


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list