title: print to the end of terminal
body: <p>Like this picture of apt-get, how can I print something at the end of the line, just like the speed on the screen. Although I can use escape like <code>\e[C</code> to make it move several columns to the right and print, but the speed varies and the string length varies. Can anyone tell me how to do this? I am currently programming using bash. Thanks.<a href="https://i.stack.imgur.com/yaP7G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yaP7G.png" alt="apt-get"></a></p>