Get the value of the attribute. Notice, the value stands for RGB color from 0x000000 to 0xFFFFFF if the attribute type is ATTRIBUTE_FOREGROUND or ATTRIBUTE_BACKGROUND.