'\b' will move the cursor back to one backspace, and '\r' will move the cursor to the beginning position of current line. one example is this:
printf("123");
printf("\b");
printf("abc");
the final output would be 12abc, and:
printf("123");
printf("\r");
printf("abc");
the final ouput would be abc, that 's all.