def get_sequence_for_attributes(
        cls, fg_color: int, bg_color: int, attr: int
    ) -> str:
        """Return a fully formed escape sequence for the color pair
        and additional attributes"""
        return (
            "\x1b["
            + str(cls.FOREGROUND_RANGE.bottom + fg_color)
            + ";"
            + str(cls.BACKGROUND_RANGE.bottom + bg_color)
            + ";"
            + str(attr)
            + "m"
        )
Return a fully formed escape sequence for the color pair
        and additional attributes
src/pathpicker/formatted_text.py