Article View: pl.comp.lang.python
Article #8401Re: Czyszczenie ekranu w pythonie
From: c00lfon
Date: Fri, 29 Apr 2005 15:59
Date: Fri, 29 Apr 2005 15:59
26 lines
1850 bytes
1850 bytes
Dnia czwartek, 28 kwietnia 2005 20:06 Artur M. Piwko w
<slrnd729gj.8dm.pipene-news@beast.tu.kielce.pl> napisał(a) na
pl.comp.lang.python:
Witam Wszystkich, to mój pierwszy post na tej grupie :)
>> 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'
Może np.:
import os
os.system("clear") #? i odpowiednio cls dla Windows.
> Artur
Pozdrawiam.Lukasz.
P.S.: Ewentualnie http://groups.google.pl/ -> python clear screen
--
c00lfon (Coolfon), !(coolfon) | % Częstochowa % | Slackware 10.1
Kadu/EKG: 0x7C8943, em@il: lukasz%ebbgfuryy.rot13.or, RLU #376471
Doświadczenie to coś co zdobywasz tuż po chwili w której go potrzebowałeś...
Technical Details
Message-ID:
<d4tlut$ti$1@nemesis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<20050428001332.BBE4AD0B47@rekin6.o2.pl> <slrnd729gj.8dm.pipene-news@beast.tu.kielce.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!news.tpi.pl!not-for-mail From: c00lfon <c00lfon@127.0.0.1> Newsgroups: pl.comp.lang.python Subject: Re: Czyszczenie ekranu w pythonie Date: Fri, 29 Apr 2005 17:59:56 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 26 Message-ID: <d4tlut$ti$1@nemesis.news.tpi.pl> References: <20050428001332.BBE4AD0B47@rekin6.o2.pl> <slrnd729gj.8dm.pipene-news@beast.tu.kielce.pl> NNTP-Posting-Host: dc10.internetdsl.tpnet.pl Mime-Version: 1.0 X-Trace: nemesis.news.tpi.pl 1114790685 946 80.53.238.10 (29 Apr 2005 16:04:45 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Fri, 29 Apr 2005 16:04:45 +0000 (UTC) User-Agent: KNode/0.8.2 X-User: c00lfon X-Distro: Slackware 10.1 X-Kernel: Linux 2.4.29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit