Reputation: 67
I often use operating systems without GUI, and I'm also developing mine. I've noticed that, although VGA 80x25 mode supports 0xF color, which stands for white, everyone uses 0x7, which stands for gray, for text color. Why doesn't one use white? After all, it's easier to see it with black background.
P.S. I'm sorry if I've made any mistakes, English isn't my native language.
Upvotes: 4
Views: 84
Reputation: 62
Because the names of the colors are confusing.
So if you are a developer and you search the table for "white" you will find that 0x07 is white and you might not see the second entry at the bottom of the table (0x0F) because you think you already found the ID for white. So real white is 0x0F and using 0x07 as white is a bug caused by the confusing names.
Upvotes: 0