Skip to content
Surf Wiki
Save to docs
general/bios

From Surf Wiki (app.surf) — the open knowledge base

BIOS color attributes

Bit values used in computer graphics


Summary

Bit values used in computer graphics

A BIOS Color Attribute is an 8 bit value where the low 4 bits represent the character color and the high 4 bits represent the background color. The name comes from the fact that these colors are used in BIOS interrupts, specifically INT 10h, the video interrupt. When writing text to the screen, a BIOS color attribute is used to designate the color to write the text in. For example, to print a white character with a black background, a color attribute of 0Fhex would be used. The high four bits are set to 0000bin, representing the background color, black. The low 4 bits, 1111bin, represent the foreground color, white. The highest bit of the color attribute, which is also the highest bit of the background color can take over two functions. It can either have no influence on the background color making text blink when set, effectively limiting the available background colors to only eight, or if intensive background colors are enabled the full 16 colors become available but blinking is no longer available. This behavior can be changed, i.e., using BIOS interrupt 10hex, function 1003hex. By default, when using the BIOS interrupt, the highest bit controls the brightness of colors, and not blinking, but this behavior may differ in other implementations of BIOS colors . This 16 colour palette is often used in console programs (e.g. in Windows) and sometimes for chat in games (e.g. Minecraft).

List of BIOS color attributes

DecHexBinaryColor
000000Black
110001Blue
220010Green
330011Cyan
440100Red
550101Magenta
660110Brown
770111Light Gray
881000Dark Gray
991001Light Blue
10A1010Light Green
11B1011Light Cyan
12C1100Light Red
13D1101Light Magenta
14E1110Yellow
15F1111White

By default, there are 16 colors for text and only 8 colors for background.

There is a way to get all the 16 colors for background, which requires turning off the "blinking attribute".

References

References

  1. [http://www.ctyme.com/intr/rb-0117.htm Int 10h/AX=1003 Ralf Brown's Interrupt List, online version]
  2. (11 June 2015). "Multiplayer: Chat". Minecraft Wiki.
Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about BIOS color attributes — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report