Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43995

Re: clear the screen

Date 2013-04-21 06:21 -0400
From Dave Angel <davea@davea.name>
Subject Re: clear the screen
References <7aecbd4f-192e-43f2-99fb-f55c93701841@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.874.1366539710.3114.python-list@python.org> (permalink)

Show all headers | View raw


On 04/20/2013 10:45 PM, Yuanyuan Li wrote:
> How to clear the screen? For example, in the two player game. One player sets a number and the second player guesses the number. When the first player enters the number, it should be cleared so that the second number is not able to see it. My question is how to clear the number.
> Thank you!
>

Welcome to the python mailing list.

The first thing you'd have to specify is your environment.  Are you 
writing a gui program, and if so, with which toolkit (tk, wx, etc.).

Or are you writing a console program?  The simplest portable way is to 
issue 50 or so newlines, so things scroll beyond easy visibility. Of 
course, many terminal programs can easily scroll back, perhaps by using 
the mouse wheel.

If you want something better than that, you'd have to specify your 
Python version and Operating System.  Then somebody familiar with the 
quirks of that particular system can chime in.


-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

clear the screen Yuanyuan Li <xintai404@gmail.com> - 2013-04-20 19:45 -0700
  Re: clear the screen Dave Angel <davea@davea.name> - 2013-04-21 06:21 -0400
  Re: clear the screen Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-21 12:49 +0000

csiph-web