Edit:
Apparently the carriage return \r
and the backspace \b
won’t actually work within Idle because it uses a text control that doesn’t render return/backspace properly.
You might be able to write some sort of patch for Idle, but it might be more trouble than it’s worth (unless you really like Idle)