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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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