[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: Richard Norton <rwtnorton@xxxxxxxxxxxxx>
- Date: Thu, 18 May 2006 03:20:58 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 18 May 2006 04:19:27 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=acSBToNPy/2g3CyitH/Xz3JV1O1PvM3xO2YcbXxz7/POmbm0qcDigG5FuFfTCcEW; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer:X-ELNK-Trace:X-Originating-IP;
- In-reply-to: <446C1F94.8090600@xepher.net>
- References: <446C1F94.8090600@xepher.net>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
On 2006-May-18, at 02:17, Kris Schnee wrote:
I'm using the Python console for my program right now, as a way of
working out the game logic without bothering with the graphics and
GUI. How do I clear the terminal screen (in a way that'll work in the
executable, not just IDLE)? Right now as I print one display or menu
after another, others are still visible on the top of the screen,
which looks confusing. What's the equivalent of the DOS command "cls"?
Kris
Aside from the *nix "clear" command, you might look into the curses
module.
Richard