def METHOD_NAME(self, code):
    assert isinstance(code, int)
    if code == 0:
        # Reset all settings
        self.reset()
    elif code == 1:
        # Text color intensity
        self.intensity = 1
        # The following line is commented because most terminals won't
        # change the font weight, against ANSI standard recommendation: