def by_index(fg_color_index, bg_color_index = 0, attribute = 0):
    """
    Return string with ANSI escape code for set text colors 

    fg_color_index: color index from 0 to 255, applied to text
    bg_color_index: color index from 0 to 255, applied to background
    attribute: use Attribute class variables
    """
    return f"\033[{attribute};38;5;{fg_color_index};48;5;{bg_color_index}m"