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 ...

+ Reply to Thread
Results 1 to 2 of 2

clear shell screen

  1. Default 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

  2. Default 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.

+ Reply to Thread

Similar Threads

  1. extension to idle to clear screen - but how to write to screen?
    By Application Development in forum Python
    Replies: 2
    Last Post: 11-22-2007, 11:16 AM
  2. Re: clear shell screen
    By Application Development in forum Python
    Replies: 1
    Last Post: 10-30-2007, 12:34 AM
  3. Re: clear shell screen
    By Application Development in forum Python
    Replies: 0
    Last Post: 10-29-2007, 06:20 PM
  4. Re: clear shell screen
    By Application Development in forum Python
    Replies: 0
    Last Post: 10-29-2007, 01:47 AM
  5. FAQ 8.7 How do I clear the screen?
    By Application Development in forum Perl
    Replies: 0
    Last Post: 06-09-2007, 08:03 PM