title: cursor blinking removal in terminal, how to?
body: <p>I use the following lines to output my simulation's progress info in my c++ program,</p>
  
  <pre><code>double N=0;
  double percent=0;
  double total = 1000000;
  for (int i; i&lt;total; ++i)
  {
      percent = 100*i/total;
      printf("\r[%6.4f%%]",percent);
  }
  </code></pre>
  
  <p>It works fine!</p>
  
  <p>But the problem is I see the terminal cursor keeps blinking cyclically through the numbers, this is very annoying, anyone knows how to get rid of this?</p>
  
  <p>I've seen some programs like wget or ubuntu apt, they use progress bar or percentages too, but they seems no blinking cursor issue, I am wondering how did they do that?</p>
  
  <p>Thanks!</p>