(self, row, col)
Move the cursor to a new position.
Move the cursor to a new position.
Move the cursor to a new position .
def _move_cursor(self, row, col):
        """Move the cursor to a new position."""
        self.current_row, self.current_col = row, col
        # in text mode, set the cursor width and attriute to that of the new location
        if self.mode.is_text_mode:
            # set halfwidth/fullwidth cursor
            width = self._apage.get_charwidth(row, col)
            # set the cursor attribute
            attr = self._apage.get_attr(row, col)
            # FIXME: private access
            if not self._apage._locked:
                self._cursor.move(row, col, attr, width)
        else:
            # FIXME: private access
            if not self._apage._locked:
                # move the cursor
                self._cursor.move(row, col)
def _move_cursor ( self , row , col ) : self . current_row , self . current_col = row , col # in text mode, set the cursor width and attriute to that of the new location if self . mode . is_text_mode : # set halfwidth/fullwidth cursor width = self . _apage . get_charwidth ( row , col ) # set the cursor attribute attr = self . _apage . get_attr ( row , col ) # FIXME: private access if not self . _apage . _locked : self . _cursor . move ( row , col , attr , width ) else : # FIXME: private access if not self . _apage . _locked : # move the cursor self . _cursor . move ( row , col )