471,330 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

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
Oct 29 '07 #1
1 6949
Shawn Minisall <tr********@comcast.netwrote:
>
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, ti**@probo.com
Providenza & Boekelheide, Inc.
Oct 31 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Tim Mierzejewski | last post: by
4 posts views Thread by -Michelle- | last post: by
20 posts views Thread by ritchie | last post: by
22 posts views Thread by mp | last post: by
2 posts views Thread by Jay | last post: by
9 posts views Thread by silversurfer | last post: by
2 posts views Thread by nickyeng | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.