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


Groups > comp.lang.python > #43995

Re: clear the screen

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'mouse': 0.07; 'chime': 0.09; 'toolkit': 0.09; 'python': 0.11; 'gui': 0.12; '10:45': 0.16; 'portable': 0.16; 'program?': 0.16; 'quirks': 0.16; 'received:74.208.4.195': 0.16; 'simplest': 0.16; 'subject:screen': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'scroll': 0.24; 'specify': 0.24; 'question': 0.24; 'player': 0.26; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'sets': 0.30; 'program,': 0.31; 'etc.).': 0.31; 'subject:the': 0.34; 'something': 0.35; 'beyond': 0.35; 'version': 0.36; 'in.': 0.36; 'should': 0.36; 'example,': 0.37; 'so,': 0.37; 'operating': 0.37; 'two': 0.37; 'list.': 0.37; 'clear': 0.37; 'easily': 0.37; 'thank': 0.38; 'somebody': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'that,': 0.38; 'environment.': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'mailing': 0.39; 'how': 0.40; 'easy': 0.60; 'number,': 0.60; 'first': 0.61; 'received:74.208': 0.68
Date Sun, 21 Apr 2013 06:21:24 -0400
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4
MIME-Version 1.0
To python-list@python.org
Subject Re: clear the screen
References <7aecbd4f-192e-43f2-99fb-f55c93701841@googlegroups.com>
In-Reply-To <7aecbd4f-192e-43f2-99fb-f55c93701841@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:0YAVdf4YeELH+GRH/dDJaeU1InEujUF84/34BrHyjy6 kQ+6LAvX8+TU3R4Oyl61uWuHsp0Nf1M6qTShT6PRVkLOlsBHqa tjnvd/KF3Gb7HrfvmzY3iPmy42tn11MmOz3hV2+7npZitbMuJQ cCxOHohdOHtY5KVhs5lSZNvDSw4PZ2sa51zYS0eqsYc5JnNXsF r6tIBxt8mhDe5PVtDm+JWe05qhLkLtUyvKkUBZWjlvNZI7iy51 tUMPqOf42fOZZ+32ECmfV1YtS0aSJimY1WwvrUiw9GH5QCqt1N yaQ6AMH4oQWDCtiGI2OfTPv9vwUi2dzKLfJlV7aCU27J/4qYw= =
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.874.1366539710.3114.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1366539710 news.xs4all.nl 2204 [2001:888:2000:d::a6]:58944
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:43995

Show key headers only | 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