log-update

Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.