Return the number of the color-pair set by the specified attribute value. color_pair() is the counterpart to this function.
curses/pair_number
pair_number