![Intel Extensible Firmware Interface Specification Download Page 186](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117186.webp)
Extensible Firmware Interface Specification
168
12/12/00
Version 1.02
#define EFI_BACKGROUND_BLACK
0x00
#define EFI_BACKGROUND_BLUE
0x10
#define EFI_BACKGROUND_GREEN
0x20
#define EFI_BACKGROUND_CYAN
0x30
#define EFI_BACKGROUND_RED
0x40
#define EFI_BACKGROUND_MAGENTA
0x50
#define EFI_BACKGROUND_BROWN
0x60
#define EFI_BACKGROUND_LIGHTGRAY
0x70
#define EFI_TEXT_ATTR(foreground,background)
\
((foreground) | ((background) << 4))
Description
The
SetAttribute()
function sets the background and foreground colors for the
OutputString()
and
ClearScreen()
functions.
The color mask can be set even when the device is in an invalid text mode.
Devices supporting a different number of text colors are required to emulate the above colors to the
best of the device’s capabilities.
Status Codes Returned
EFI_SUCCESS
The requested mode information was returned.
EFI_DEVICE_ERROR
The device had an error and could not complete the request.
EFI_UNSUPPORTED
The attribute requested is not defined by this specification.
Summary of Contents for Extensible Firmware Interface
Page 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Page 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Page 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Page 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Page 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Page 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Page 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Page 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Page 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Page 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Page 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Page 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Page 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Page 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Page 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...