code: 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.colsf 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)
docs: Erases the screen from the current line up to the top of the
          screen.