# Path: moult/compat.py
# PY3 = sys.version_info[0] == 3


import sys
from .compat import PY3, str_

BG_BLACK = 40
BG_RED = 41
BG_GREEN = 42
BG_YELLOW = 43
BG_BLUE = 44
BG_MAGENTA = 45
BG_CYAN = 46
BG_WHITE = 47
BG_RESET = 49


enabled = True
_enabled = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()


class ColorCombo(object):
    def __init__(self, foreground=0, background=0, bright=None):
        self.foreground = foreground or FG_RESET
        self.background = background or BG_RESET
        self.set_bright(bright)

    def set_bright(self, bright):
        if bright is None:
            self.flag = 22
        elif bright:
            self.flag = 1
        else:
            self.flag = 2


# Path: moult/compat.py
# PY3 = sys.version_info[0] == 3


# Path: moult/color.py
import sys
from .compat import PY3, str_


BG_BLACK = 40
BG_RED = 41
BG_GREEN = 42
BG_YELLOW = 43
BG_BLUE = 44
BG_MAGENTA = 45
BG_CYAN = 46
BG_WHITE = 47
BG_RESET = 49


enabled = True
_enabled = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()


class ColorCombo(object):
    def __init__(self, foreground=0, background=0, bright=None):
        self.foreground = foreground or FG_RESET
        self.background = background or BG_RESET
        self.set_bright(bright)

    def set_bright(self, bright):
        if bright is None:
            self.flag = 22
        elif bright:
            self.flag = 1
        else:
            self.flag = 2


    def copy(self):