[argyllcms] Re: Not futzing with the cursor

  • From: Graeme Gill <graeme@xxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Thu, 06 May 2010 23:46:01 +1000

Richard Hughes wrote:
GCM currently screenscrapes the argyll output., and as such has no way
of knowing the progress of each command. Running the command with -v
does give us output like "patch 13 of 16" but when the "13" turns to
"14" there is no new output (the cursor is re-positioned) and hence
GCM does not get the updated line, and the progress report fails.

Hi, the cursur is "repositioned" only by doing a return rather
than a line feed. The output gets flushed (otherwise it wouldn't
appear reliably), so is there a reason you can't notice the line
has been updated (ie. don't use something like gets(), use
something that will notice the return) ?

Graeme Gill.

Other related posts: