code: def clear(self):
          
          # Erase current output first.
          self.erase()
  
          # Send "Erase Screen" command and go to (0, 0).
          output = self.output
  
          output.erase_screen()
          output.cursor_goto(0, 0)
          output.flush()
  
          self.request_absolute_cursor_position()
docs: Clear screen and go to 0,0