On Aug 14 2007 23:31, Cristea Bogdan wrote:
>
>  for(int n=0;n<10;n++)
>   {
>     sleep(2);
>     cout << (n/9.0) << "%\n";
>   }
>
>    How can I display this using the same line instead of jumping each
>time at a new line ? (besides "\r")

Besides \r, \e[1G can be used, but it's even less readable, not to mention less
portable.

>    Is there a way to make the cursor disappear while
>displaying?

man console_codes



        Jan
-- 
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to