\b is for backspace. That is, it removes the character just written.
\r is to return the cursor back to the left most position in the
current line.
Let z represent cursor.
After statement one.
\n
abz
After backspace.
az
After statement two.
asiz
After return.
zbi
After statement three
haiz