Hello
I'am looking for an alternative of system("CLS") , i don't need my whole screen cleared , i just want a specific text cleared
for example : i want the word "loading" to remain on the screen while ". . ." these three dots appear and disappear for period of time (using a timer , not an issue) .
Any help would be appreciated . ( I'am a begginer in C )
Thanks.

This is very dependent on your operating system's console. What operating system are you using?

My OS is Windows 7 64-bit

printf("\rLoading ...");
// after timer expires
printf("\r           ");

The "\r" moves the cursor back to the beginning of the line without changing lines.

Thank you , it worked perfectly .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.