Make carriage return portable

In unix we can just use '\r';
In Windows the easiest way is to print a lot of '\b';