I am trying to create simple app using c in Ubuntu, which will copy folder to other place. Every file has to be copied in separate thread and in console I want to see the progress about every copied file. Usually I am using
printf("document1.txt ####### %d \n", progress);
I know that I can overwrite a line using \r But how can I move between lines ?
I just want to see in console something like this:
document1.txt: ###########=> 30% is done
video1.txt: ##=> 5% is done
video2.txt: ######################=> 70% is done