def _set_color(fg=None, bg=None):
    result = ''
    if fg:
        result += '\x1b[38;5;%dm' % fg
    if bg:
        result += '\x1b[48;5;%dm' % bg
    return result
dataset/ETHPy150Open winhamwr/neckbeard/neckbeard/terminal_colors.py/_set_color/original