bigdragon1977 / stm32flash

Automatically exported from code.google.com/p/stm32flash
0 stars 0 forks source link

Patch for Windows control sequences for the progress indicator #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Progress indicator did not work correctly on Windows. This simply uses CR to 
set cursur to beginning of the line.

Original issue reported on code.google.com by trevorog...@aol.com on 9 Nov 2011 at 8:05

GoogleCodeExporter commented 9 years ago
Can you please provide a patch for how to do this correctly, not just send a CR

Original comment by ge...@spacevs.com on 10 Nov 2011 at 10:49

GoogleCodeExporter commented 9 years ago
I did attach the patch file but it hasn't appeared. I'll try attaching it again 
to this comment.

Original comment by trevorog...@aol.com on 11 Nov 2011 at 12:01

Attachments:

GoogleCodeExporter commented 9 years ago
Please re-read what I said...

"please provide a patch for how to do this correctly, not just send a CR"

Original comment by ge...@spacevs.com on 24 Dec 2011 at 3:25

GoogleCodeExporter commented 9 years ago
Hi, Is it that you don't like the method used in the patch or somthing? Windows 
console is limited and does not support the VT codes used here so there is no 
direct equivilent solution that I'm aware of (I'm happy/hope to be told 
otherwise by those more knowlegable on the subject). The patch achieves the 
desired reault sending the cursur to the beginning of the line allowing the 
progress info to be updated (progress info starts at the beginning of the line) 
and allows the program to be used by Windows users (otherwise the progres fills 
the screen over and over). Is this not better than the current situation at 
least untill someone comes up with a better solution? There are other places in 
the code where this would not work and an equivelent to the "save and restore" 
cussor position needs to be found but as I said I don't know what this is.

Original comment by trevorog...@aol.com on 31 Dec 2011 at 3:18