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)
|