parameters: (self)
docstring: Clear screen and go to 0,0
docstring_summary: Clear screen and go to 0,0
docstring_tokens: Clear screen and go to 0 0
function: def clear(self):
          """
          Clear screen and go to 0,0
          """
          # 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()
function_tokens: 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 ( )