Exit using the form \f , not \r . The first is useful for cleaning the screen in the console, while the second is useful for displaying progress (as indicated in aioobe).
\b can also be used in progress indicators, for example, on ICMP Ping, you can display a point when sending a ping and \b when it will be received to indicate the amount of packet loss.
source share