(self, current_attr, fore, arg1, arg2)
return None, None
Helper function for COLOR statement in SCREEN 100.
Helper function for COLOR statement in SCREEN 100.
Helper function for COLOR statement in SCREEN 100 .
def color(self, current_attr, fore, arg1, arg2):
        """Helper function for COLOR statement in SCREEN 100."""
        if fore is None:
            fore = current_attr
        # for screens other than 1, no distinction between 3rd parm zero and not supplied
        arg2 = arg2 or 0
        error.range_check(0, 255, arg2)
        max_attr = self.num_attr - 1
        max_colour = self.num_colours - 1
        # Olivetti screen 4 2-colour can change foreground with COLOR but bg is always black
        error.range_check(0, max_colour, fore)
        if arg1:
            # mut be zero or unspecified
            raise error.BASICError(error.IFC)
        self.set_entry(1, fore, force=True)
        return None, None
def color ( self , current_attr , fore , arg1 , arg2 ) : if fore is None : fore = current_attr # for screens other than 1, no distinction between 3rd parm zero and not supplied arg2 = arg2 or 0 error . range_check ( 0 , 255 , arg2 ) max_attr = self . num_attr - 1 max_colour = self . num_colours - 1 # Olivetti screen 4 2-colour can change foreground with COLOR but bg is always black error . range_check ( 0 , max_colour , fore ) if arg1 : # mut be zero or unspecified raise error . BASICError ( error . IFC ) self . set_entry ( 1 , fore , force = True ) return None , None