[ipxe-devel] [PATCH] [bios] Add ANSI blink attribute

Christian Nilsson nikize at gmail.com
Sat Apr 25 23:18:37 UTC 2015


Most BIOSes supports blinking text when high attribute bit is set,

Worth noting is that some BIOS implementations incorrectly
displays an high intensity background instead.

EFI do not support blink attribute, thus only implemented for BIOS.

Signed-off-by: Christian Nilsson <nikize at gmail.com>
---
 src/arch/i386/firmware/pcbios/bios_console.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/arch/i386/firmware/pcbios/bios_console.c b/src/arch/i386/firmware/pcbios/bios_console.c
index 7b2f8ad..c974a89 100644
--- a/src/arch/i386/firmware/pcbios/bios_console.c
+++ b/src/arch/i386/firmware/pcbios/bios_console.c
@@ -43,6 +43,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
 #define ATTR_FCOL_YELLOW	0x06
 #define ATTR_FCOL_WHITE		0x07
 
+#define ATTR_BLINK		0x80
+
 #define ATTR_BCOL_MASK		0x70
 #define ATTR_BCOL_BLACK		0x00
 #define ATTR_BCOL_BLUE		0x10
@@ -141,6 +143,8 @@ static void bios_handle_sgr ( struct ansiesc_context *ctx __unused,
 			bios_attr = ATTR_DEFAULT;
 		} else if ( aspect == 1 ) {
 			bios_attr |= ATTR_BOLD;
+		} else if ( aspect == 5 ) {
+			bios_attr |= ATTR_BLINK;
 		} else if ( aspect == 22 ) {
 			bios_attr &= ~ATTR_BOLD;
 		} else if ( ( aspect >= 30 ) && ( aspect <= 39 ) ) {
-- 
2.0.5




More information about the ipxe-devel mailing list