469,364 Members | 2,424 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,364 developers. It's quick & easy.

Delete an Output

176 100+
Hello guys. I was just curious if it is possible to delete an outputted message e.g.

from time import sleep
print "Hello, world! This message will be deleted in 5 seconds."
sleep(5)
#Delete the text command goes here.
Mar 26 '08 #1
2 1417
jlm699
314 100+
It depends on your OS but as long as you're working with a terminal/command window you can issue a clear screen...
Expand|Select|Wrap|Line Numbers
  1. # if DOS
  2. os.system("cls")
  3. # if Linux
  4. os.system("clear")
  5.  
Mar 26 '08 #2
Kid Programmer
176 100+
Neither of those commands worked when I was using Terminal. And I usually like to program using IDLE. Thanks anyways.
Mar 27 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

20 posts views Thread by de Beers | last post: by
2 posts views Thread by Dave | last post: by
6 posts views Thread by shoosh | last post: by
5 posts views Thread by junw2000 | last post: by
1 post views Thread by ricky | last post: by
2 posts views Thread by Francesco Pietra | last post: by
8 posts views Thread by Michel Esber | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.