| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Screen control |
On Sat, 21 Oct 2017 21:04:15 +0100, T M Smith wrote:
> I am sure this is elementary to most but bear with me please.
> I am using Raspbian on a pi. How does one get a reading to print on
> screen in the same place on a continueing basis rather than printing on
> a new line and scrolling.
>
> Malcolm Smith
This seems to work in Python:
import time, sys
for i in xrange (20):
sys.stdout.write ('\r' + str (i) + ' '*20)
sys.stdout.flush()
time.sleep (.5)
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3) |
|
| SOURCE: echomail via QWK@docsplace.org | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.