TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DENNIS LEE BIEBER
date: 2017-10-22 15:50:00
subject: Re: Screen control

On Sun, 22 Oct 2017 17:41:01 -0000 (UTC), Martin Gregorie
 declaimed the following:


>> elif "overwrite" in sys.argv:
>>     print print for x in xrange(100):
>>         sys.stdout.write("\rPseudo-Temperature: %10.3f"
>>                          % (x * 3.14159 - 25.5))

  sys.stdout.flush()

>>         time.sleep(1)
>> else:
>>     print "\nPlease supply either 'scroll' or 'overwrite' on the command
>> line"
>>
>>
>> -=-=-=-=-
>> C:\Users\Wulfraed\Documents\Python Progs>so.py
>>
>This solution doesn't seem to be OS-agnostic, unfortunately.
>
>On my system, Fedora 25 with Python 2.7.13, 'scroll' works as expected,
>but 'overwrite' doesn't display anything. Since that looks as if you ran
>it on some flavour of Windows, does it work as expected on a Raspbian box?
>
 Adding the flush() produced output on Debian Stretch running in
VirtualBox. Should have no effect on Windows.
--
 Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

--- 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™.