screen output problem
Ritesh Raj Sarraf
rrs at researchut.com
Wed Nov 29 14:19:44 CET 2006
I'm not sure if there is a definite solution to this problem.
I've noticed that one of the applications, which I use on a daily basis
(apt from Debian) does address the progress bar issue in another way.
When apt tries to download multiple files, it displays the progress of
all the downloads on a single line. Probably the apt developers also
might have run into the same issue and hence settled down with this
Dennis Lee Bieber wrote:
> On Tue, 28 Nov 2006 15:15:28 +0530, Ritesh Raj Sarraf
> <rrs at researchut.com> declaimed the following in comp.lang.python:
> > If there's a way to print multiple lines of text withouth the newline ("\n")
> > character, we can then use carriage return ("\r") and implement a proper
> > progressbar with a bar for each separate progress action.
> If you were running on an Amiga, or via a serial port connection to
> an old VT-100 terminal, it would be child's play... Since both
> understood the same terminal control codes for moving the cursor around
> a text display.
> The old MS-DOS "ANSI" console driver may have understood that set.
> But M$, in its great and all-powerful wisdom, seems to feel that the
> only need for a command line interface is for batch configuration
> scripts that run with no human interaction, and hence with no need for
> status. One is expected to code a GUI instead if such things as
> progress-bars are needed.
> A google for "windows console cursor control" brings up (a bit of a
> surprise since I my search terms didn't mention Python):
> Of course, this isn't portable to LINUX or other operating systems...
> Also, looking at win32api, I find a SetCursorPos() (and matching
> Wulfraed Dennis Lee Bieber KD6MOG
> wlfraed at ix.netcom.com wulfraed at bestiaria.com
> (Bestiaria Support Staff: web-asst at bestiaria.com)
More information about the Python-list