Article View: pl.comp.lang.python
Article #8399Re: Czyszczenie ekranu w pythonie
From: Artur M. Piwko
Date: Thu, 28 Apr 2005 18:06
Date: Thu, 28 Apr 2005 18:06
16 lines
1522 bytes
1522 bytes
In the darkest hour on 28 Apr 2005 02:14:08 +0200,
Artur Rutkowski <ldfura@o2.pl> screamed:
> Mam taki problem. Gdy wywołam program napisany w pythonie, na ekranie oprucz tekstu mojego programu sa rowniez komendy systemowe ktore wywolalem wczesniej. Moje pytanie brzmi: Jak wyczyscic ekran w pythonie i wyswietlic tekst programu od pierwszej linii ekranu?
>
def clear_screen():
print '\033[2J\033[0;0H'
Artur
--
[ Artur M. Piwko : Pipen : AMP29-RIPE : RLU:100918 : From == Trap! : SIG:227B ]
[ 20:05:13 user up 10595 days, 8:00, 1 user, load average: 0.06, 0.06, 0.06 ]
Is reading in the bathroom considered Multi-Tasking?
Technical Details
Message-ID:
<slrnd729gj.8dm.pipene-news@beast.tu.kielce.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!newsfeed.silweb.pl!news.tu.kielce.pl!not-for-mailReferences:
<20050428001332.BBE4AD0B47@rekin6.o2.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!newsfeed.silweb.pl!news.tu.kielce.pl!not-for-mail From: "Artur M. Piwko" <pipene-news@pu.kielce.pl> Newsgroups: pl.comp.lang.python Subject: Re: Czyszczenie ekranu w pythonie Date: Thu, 28 Apr 2005 18:06:18 +0000 (UTC) Organization: Petroleum Drinkers (; Lines: 16 Message-ID: <slrnd729gj.8dm.pipene-news@beast.tu.kielce.pl> References: <20050428001332.BBE4AD0B47@rekin6.o2.pl> Reply-To: pipene-news@pu.kielce.pl NNTP-Posting-Host: sznajder.eu.org Mime-Version: 1.0 X-Trace: sabat.tu.kielce.pl 1114711578 14181 81.26.0.18 (28 Apr 2005 18:06:18 GMT) X-Complaints-To: abuse@tu.kielce.pl NNTP-Posting-Date: Thu, 28 Apr 2005 18:06:18 +0000 (UTC) User-Agent: slrn/0.9.8.1 (Linux) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit