it seems that escaped characters passed in write() don't work (at least) properly.
printf("test");
printf("\r1234);
return
123
as expected, but
printf("test");
write(1, "\r1234, 5);
return
1234test
so the line is not overwritten
I would like to know how to erase/overwrite a line in C (i am on linux btw) Thank you