@classmethod
    def str(cls, message, foreground=-1, background=-1,
            light=False, underline=False, blink=False, swap=False, hide=False):
        codes = []
        if light:
            codes.append(cls.LIGHT)
        if underline:
            codes.append(cls.UNDERLINE)
        if blink:
            codes.append(cls.BLINK)
        if swap:
            codes.append(cls.SWAP)
        if hide:
            codes.append(cls.HIDE)
        if foreground >= 0:
            codes.append(cls.FOREGROUND + foreground)
        if background >= 0:
            codes.append(cls.BACKGROUND + background)

        return cls.str_with_codes(message, *codes)
dataset/ETHPy150Open sodastsai/taskr/taskr/terminal.py/Color.str/original