Here is the code below:
#include <stdio.h>
int main(int argc, char* argv[])
{
printf("WORD\b\b WORD\b\b");
return 0;
}
which generates this output:
WO WORD
The question is why the last \b
does not have effect on the second word more specifically when they are at the end of the string?
"WORD\b\b WORD\b\b "
? I suspect your terminal moves the cursor back but does not erase the character. – Alburga