There exist special Escape Codes that, when sent to the terminal, instruct the terminal to reposition the cursor without disrupting what's already being displayed.