title: How to delete the last OUTPUT in python console, not the last LINE?
body: <p>I'm making a simplistic text adventure game for practice. I want players to be able to backtrack once they go farther into a scenario, for example after they go down a staircase I want them to be able to have &quot;back&quot; as an option and be able to retrace their steps.</p>
  <p>I've already figured out every aspect of that except: How to clear the message that popped up telling them about the scenario they just entered.</p>
  <p>I have code making their response a variable, and then determining if that variable is one of a set list of viable options, and if not looping them back to the start and deleting their previous entry with the line of code <code> print(&quot;\033[A                             \033[A&quot;)</code></p>
  <p>However, this code only deletes the last <strong>line</strong> of code, which varies wildly depending on screen ratio and different devices, and not the last output, which is the entire message that described to them the scenario.</p>
  <p>Does anyone know a piece of code that can either</p>
  <ul>
  <li>delete the entire last output of the console, in this case a printed line of code which exceeds one line and may extend for as many as 8-10 lines, detailing their scenario, or</li>
  <li>clear the console and then warp them back to my predefined starting point (Example: <code>def start0():</code>), because after I clear the console the code <code>start0()</code> doesn't work.</li>
  </ul>