[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
RE: [pygame] Clearing the Screen
- To: <pygame-users@xxxxxxxx>
- Subject: RE: [pygame] Clearing the Screen
- From: "Nelson, Scott" <SNelson@xxxxxxxxxx>
- Date: Thu, 18 May 2006 11:32:20 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Fri, 19 May 2006 03:29:02 -0400
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- Thread-index: AcZ6Vc3hPJYu7RTCQKS/O0QaMaE6rgAQpJQg
- Thread-topic: [pygame] Clearing the Screen
Or, if you are on Windows and really want to hack it quickly,
os.system('cls') will clear the screen.
Ex:
import os
print 'hello'
raw_input()
os.system('cls')
print 'page two'
raw_input()
os.system('cls')
print 'last page'
-Scott
-----Original Message-----
From: owner-pygame-users@xxxxxxxx [mailto:owner-pygame-users@xxxxxxxx]
On Behalf Of Sami Hangaslammi
Sent: Thursday, May 18, 2006 3:34 AM
To: pygame-users@xxxxxxxx
Subject: Re: [pygame] Clearing the Screen
On 5/18/06, Richard Norton <rwtnorton@xxxxxxxxxxxxx> wrote:
> Aside from the *nix "clear" command, you might look into the curses
> module.
Or if you are using Windows, the console module at
http://effbot.org/zone/console-index.htm
--
Sami Hangaslammi