clear shell screen
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Mon Oct 29 02:47:03 EDT 2007
En Mon, 29 Oct 2007 00:08:14 -0300, Shawn Minisall
<trekker182 at comcast.net> escribi�:
> Does anyone know how to clear the shell screen completely ? I tried
> import os and then os.system("clear") was said to have worked in Windows
> XP, but it's just bringing up another window, then it turns black and
> then it closes in within about a second moving the prompt at the
> os.system("clear") line . I've also tried os.system("cls") with the
> same results.
Try running cls from a command prompt. If it works, it should work from
inside Python, using os.system("cls")
--
Gabriel Genellina
More information about the Python-list
mailing list