parameters: (self)
docstring: Clears the screen based on the number of times |self.__OutputLine| was
      called.
docstring_summary: Clears the screen based on the number of times |self.__OutputLine| was
      called.
docstring_tokens: Clears the screen based on the number of times |self . __OutputLine| was called .
function: def __ClearScreen(self):
      """Clears the screen based on the number of times |self.__OutputLine| was
      called."""
      if self.lines_printed == 0 or not self.overwrite:
        return
  
      key_term_up = curses.tparm(curses.tigetstr('cuu1'))
      key_term_clear_eol = curses.tparm(curses.tigetstr('el'))
      key_term_go_to_bol = curses.tparm(curses.tigetstr('cr'))
  
      sys.stdout.write(key_term_go_to_bol)
      sys.stdout.write(key_term_clear_eol)
  
      for i in range(self.lines_printed):
        sys.stdout.write(key_term_up)
        sys.stdout.write(key_term_clear_eol)
      self.lines_printed = 0
function_tokens: def __ClearScreen ( self ) : if self . lines_printed == 0 or not self . overwrite : return key_term_up = curses . tparm ( curses . tigetstr ( 'cuu1' ) ) key_term_clear_eol = curses . tparm ( curses . tigetstr ( 'el' ) ) key_term_go_to_bol = curses . tparm ( curses . tigetstr ( 'cr' ) ) sys . stdout . write ( key_term_go_to_bol ) sys . stdout . write ( key_term_clear_eol ) for i in range ( self . lines_printed ) : sys . stdout . write ( key_term_up ) sys . stdout . write ( key_term_clear_eol ) self . lines_printed = 0