Hi,
I mistakenly used the term 'reverse' in a previous post, when referring to the highlighted color that is used when inputting a value.
So if a simple See displays a string in CC_FG_BLUE, I'm trying to find out how to display that same string in an enhanced color form, meaning the color it would appear in a console input box.
Am I confused on this? Do we need to just | combine the CC_FG color with a corresponding background color?
Or do we need to & combine the standard color with COMMON_LVB_REVERSE_VIDEO 0x4000?
Would it be easier to just use RGB values and invert them?
Maybe I'm just tired, but am not seeing something that should be obvious.
CC_FG_NONE = 0 << 0, 0
CC_FG_BLACK = 1 << 0, 1
CC_FG_DARK_RED = 2 << 0, 2
CC_FG_DARK_GREEN = 3 << 0, 3
CC_FG_DARK_YELLOW = 4 << 0, 4
CC_FG_DARK_BLUE = 5 << 0, 5
CC_FG_DARK_MAGENTA = 6 << 0, 6
CC_FG_DARK_CYAN = 7 << 0, 7
CC_FG_GRAY = 8 << 0, 8
CC_FG_DARK_GRAY = 9 << 0, 9
CC_FG_RED = 10 << 0, 10
CC_FG_GREEN = 11 << 0, 11
CC_FG_YELLOW = 12 << 0, 12
CC_FG_BLUE = 13 << 0, 13
CC_FG_MAGENTA = 14 << 0, 14
CC_FG_CYAN = 15 << 0, 15
CC_FG_WHITE = 16 << 0, 16
CC_BG_NONE = 0 << CC_COLOR_BITS, 0
CC_BG_BLACK = 1 << CC_COLOR_BITS, 32
CC_BG_DARK_RED = 2 << CC_COLOR_BITS, 64
CC_BG_DARK_GREEN = 3 << CC_COLOR_BITS, 96
CC_BG_DARK_YELLOW = 4 << CC_COLOR_BITS, 128
CC_BG_DARK_BLUE = 5 << CC_COLOR_BITS, 160
CC_BG_DARK_MAGENTA = 6 << CC_COLOR_BITS, 192
CC_BG_DARK_CYAN = 7 << CC_COLOR_BITS, 224
CC_BG_GRAY = 8 << CC_COLOR_BITS, 256
CC_BG_DARK_GRAY = 9 << CC_COLOR_BITS, 288
CC_BG_RED = 10 << CC_COLOR_BITS, 320
CC_BG_GREEN = 11 << CC_COLOR_BITS, 352
CC_BG_YELLOW = 12 << CC_COLOR_BITS, 384
CC_BG_BLUE = 13 << CC_COLOR_BITS, 416
CC_BG_MAGENTA = 14 << CC_COLOR_BITS, 448
CC_BG_CYAN = 15 << CC_COLOR_BITS, 480
CC_BG_WHITE = 16 << CC_COLOR_BITS 512