I want to make my program to print something, then wait for a few seconds and then print something else in the same line. I've tried to write it as:
printf ("bla bla bla");
sleep (2);
printf ("yada yada yada\n");
but in the output I get to wait for 2 seconds and then I get the whole line printed as one. When I tried to put the output in different lines it did print with a pause.
How do I make it to print with a pause in the same line?
*Working on Linux