[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] progress indicator
[avrdude-dev] progress indicator
Fri, 25 Jul 2003 21:48:07 +0200
In the email below. Alex talked about IDE enviroments (VI and emacs).
When the output from avrdude was captured in the programs it will
be a lot of lines with numbers.
I see two different solutions the one I have send earlier or
the one that Brian had send:
Writing: |########### | 29% ETA 22.3 sec
But if I have understood the problem right when capturing the output not all
control characters (0x00 - 0x1f) have exactly the same function as in the
terminal. The \r gives a new line (Alex said so) when it is put on the
screen in VI or emacs but it returns the cursor to the start of the same
line as it is on now in a terminal.
Therefore the selected solution should be a solution that works both in VI,
emacs and in a terminal. But what does an emacs user need of output are the
output put to the screen in realtime ??
If not I think the best solution would just be a -q option. But if the emacs
users get the output in realtime then we will need to create a progress
indicator that is portable between the different output devices.
I have not used emacs and want some feedback from emacs users. Is the
captured output put to the screen in realtime?? Which control characters
will not destroy the output like the \r does??
Behalf Of Alex Shepherd
Sent: Thursday, July 24, 2003 6:32 AM
To: 'address@hidden Org'
Subject: RE: [avrdude-dev] winxp lpt device autodetect
> > Alex, if you have the time and inclination, a patch to the
> > source would be most helpful to have! It would make
> > incorporating the changes that much easier. TIA.
Please give me a few clues how I would go about doing this. I believe this
is done using "diff" utility and you select the context diff option with
maybe 4 lines of context. Bear in mind that I an starting from the source
code tar file and not CVS so I guess I need to unzip the file again to
another directory and diff the two directories. Is this what you want?
> I seem to recall, as part of the changes, a patch that disabled the
> numeric address progress indicator and replaced it with '.'s being
> printed for each 128 bytes? That change seemed a bit gratuitous,
> though, and we've been printing the rolling address for many years
> now, so I'd like to keep that part working the way it is.
Well if you are using avrdude on the command line then it is probably fine,
but when you run avrdude inside an IDE (I bet you use VI or Emacs right)
that captures the output, you end up with a screen full of hundreds of lines
of numbers and you have to scroll around inside the window to find the
relevant success or failure message. This makes the use of avrdude in this
environment rather painful.
The main reason I have persevered with avrdude is that it comes bundled with
WinAvr. (thanks Eric) It makes sense to have a programming utility that
works reliably with Windows, so new people wanting to work on my project,
only need to install the WinAvr package and they are ready to go.
You sound quite set on keeping the current numeric progress behaviour which
is fine, so may I suggest that we add an alternate hashing type progress
indicator much like what uisp and ftp etc use. This new parameter could be
of the form --hash[=nn] where if "--hash" is specified then it prints a hash
rather than the current numeric progress indicator that defaults to some
useful number like 256 say which can be changed by specifying the optional
avrdude-dev mailing list