def rgb_string(s: str, rgb: [int, int, int], attr: str=38) ->str:
    """ Take a rgb decimal list and string, return a shell colour sequence """
    r, g, b = rgb
    out = f'\x1b[{attr};2;{r};{g};{b}m{s}'
    return out
