code: def cursor_to_line(self, line=None):
          
          self.cursor.y = (line or 1) - 1
  
          # If origin mode (DECOM) is set, line number are relative to
          # the top scrolling margin.
          if mo.DECOM in self.mode:
              self.cursor.y += self.margins.top
  
              # FIXME: should we also restrict the cursor to the scrolling
              # region?
  
          self.ensure_vbounds()
docs: Move cursor to a specific line in the current column.
  
          :param int line: line number to move the cursor to.