I learned that \r sucks on small terminals, better use backspace (\b) to erase the characters.
This way it also works on multiple lines.