Why do console OSes use gray text instead of white?

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

Answers (1)

Some name
Some name

Reputation: 62

Because the names of the colors are confusing.

  • 0x07 looks like a light gray, but it's called "white"
  • 0x08 looks like a dark gray, but it's called "gray"
  • 0x0F looks like white, but it's called "white (high intensity)"

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

Related Questions