code: def erase_data(self, mode=0, on_stderr=False):
      # 0 (or None) should clear from the cursor to the end of the screen.
      # 1 should clear from the cursor to the beginning of the screen.
      # 2 should clear the entire screen. (And maybe move cursor to (1,1)?)
      #
      # At the moment, I only support mode 2. From looking at the API, it
      #    should be possible to calculate a different number of bytes to clear,
      #    and to do so relative to the cursor position.
      if mode[0] not in (2,):
          return
      handle = win32.STDOUT
      if on_stderr:
          handle = win32.STDERR
      # here's where we'll home the cursor
      coord_screen = win32.COORD(0, 0)
      csbi = win32.GetConsoleScreenBufferInfo(handle)
      # get the number of character cells in the current buffer
      dw_con_size = csbi.dwSize.X * csbi.dwSize.Y
      # fill the entire screen with blanks
      win32.FillConsoleOutputCharacter(
          handle, " ", dw_con_size, coord_screen
      )
      # now set the buffer's attributes accordingly
      win32.FillConsoleOutputAttribute(
          handle, self.get_attrs(), dw_con_size, coord_screen
      )
      # put the cursor at (0, 0)
      win32.SetConsoleCursorPosition(
          handle, (coord_screen.X, coord_screen.Y)
      )
  
file_path: pyqtgraph/pyqtgraph/util/colorama/winterm.py
imports: from .None import win32
label_desc: Use image node_id 12 for calling the WinTerm obj's underlying member method code with example usage: obj.erase_data(mode, on_stderr) without return types