clear shell screen - Python
This is a discussion on clear shell screen - Python ; 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 ...
-
clear shell screen
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.
thx
-
Re: clear shell screen
Shawn Minisall <trekker182@comcast.net> wrote:
>
>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.
os.system('cls') works just fine from a command shell. I just tried it.
Are you running from inside Pythonwin? If so, then what you are looking at
is not a "shell screen" in any way. It's a simulation, and I don't know of
any way to clear it.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Similar Threads
-
By Application Development in forum Python
Replies: 2
Last Post: 11-22-2007, 11:16 AM
-
By Application Development in forum Python
Replies: 1
Last Post: 10-30-2007, 12:34 AM
-
By Application Development in forum Python
Replies: 0
Last Post: 10-29-2007, 06:20 PM
-
By Application Development in forum Python
Replies: 0
Last Post: 10-29-2007, 01:47 AM
-
By Application Development in forum Perl
Replies: 0
Last Post: 06-09-2007, 08:03 PM