Mailinglist Archive: opensuse (2086 mails)
| < Previous | Next > |
Re: [opensuse] Display several times a string at a fixed location in terminal
- From: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
- Date: Fri, 17 Aug 2007 12:48:07 +0200 (CEST)
- Message-id: <Pine.LNX.4.64.0708171247110.5492@xxxxxxxxxxxxxxxxxxxxxxxxx>
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: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |