parameters: (self)
docstring: Erases the screen from the current line up to the top of the
          screen.
docstring_summary: Erases the screen from the current line up to the top of the
          screen.
docstring_tokens: Erases the screen from the current line up to the top of the screen .
function: def erase_up (self): # <ESC>[1J
          '''Erases the screen from the current line up to the top of the
          screen.'''
  
          self.erase_start_of_line ()
          self.fill_region (self.cur_r-1, 1, 1, self.cols)
function_tokens: def erase_up ( self ) : # <ESC>[1J self . erase_start_of_line ( ) self . fill_region ( self . cur_r - 1 , 1 , 1 , self . cols )