[FFmpeg-devel] [PATCH] Don't let error messages overwrite progress information
Wed Oct 27 12:42:23 CEST 2010
On Wed, Oct 27, 2010 at 12:09:21PM +0200, Michael Karcher wrote:
> Am Mittwoch, den 27.10.2010, 11:59 +0200 schrieb Michael Niedermayer:
> > > > > For this reason, I suggest adding a new line before printing the
> > > > > first line of every warning/error message.
> > > >
> > > > this looks like a hack
> > >
> > > This is the best I could come up with. Do you have a better proposal?
> > > I'm all hears.
> > Problem is that we dont want the status line to overwrite something else
> > so keep track of the last thing printed and add a \n as needed
> What about printing the \r at the beginning of the status message
> instead of at the end? For sucessive status outputs, either way works,
> but the cursor will be at the end of the status message so it won't be
> overwritten if something else is output after it.
The "last message repeated" stuff will still overwrite it and appending
text after it wont look pretty
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel