(self, mode, attr, colourmap)
Change the cursor for a new screen mode.
Change the cursor for a new screen mode.
Change the cursor for a new screen mode .
def init_mode(self, mode, attr, colourmap):
        """Change the cursor for a new screen mode."""
        self._mode = mode
        self._height = mode.font_height
        self._colourmap = colourmap
        self._visible = None
        # set the cursor position and attribute
        self.move(1, 1, attr, new_width=1)
        # cursor width starts out as single char
        self.set_default_shape(True)
        self._set_visibility()
def init_mode ( self , mode , attr , colourmap ) : self . _mode = mode self . _height = mode . font_height self . _colourmap = colourmap self . _visible = None # set the cursor position and attribute self . move ( 1 , 1 , attr , new_width = 1 ) # cursor width starts out as single char self . set_default_shape ( True ) self . _set_visibility ( )