def color(rgb):
    if (rgb is None):
        return ''
    ix = x256.from_rgb(*rgb)
    return ('\x1b[38;5;%dm' % ix)
def color(rgb):
    if (rgb is None):
        return 
    ix = x256.from_rgb(*rgb)
    return ('\x1b[38;5;%dm' % ix)