[coreboot] [PATCH 1/2] bayou: use ACS for line drawing

Ulf Jordan jordan at chalmers.se
Sat Aug 16 22:53:06 CEST 2008


Hello!

Attached is a patch to update Bayou v0.3 to use ACS_ macros for the line 
drawing characters in the menu window border.

Build and run tested under QEMU with bayou-0.3+coreboot-v3.

/ulf
-------------- next part --------------
Update bayou to use ACS_ macros for line drawing characters.

Signed-off-by: Ulf Jordan <jordan at chalmers.se>

Index: bayou-0.3/src/menu.c
===================================================================
--- bayou-0.3/src/menu.c.orig	2008-06-20 00:33:21.000000000 +0200
+++ bayou-0.3/src/menu.c	2008-08-14 23:19:51.000000000 +0200
@@ -70,8 +70,8 @@
 
 	wattrset(menuwin, COLOR_PAIR(3));
 	wclear(menuwin);
-	wborder(menuwin, '\263', '\263', '\304', '\304','\332',
-		'\277', '\300', '\331');
+	wborder(menuwin, ACS_VLINE, ACS_VLINE, ACS_HLINE, ACS_HLINE,
+		ACS_ULCORNER, ACS_URCORNER, ACS_LLCORNER, ACS_LRCORNER);
 
 	wattrset(menuwin, COLOR_PAIR(4) | A_BOLD);
 	mvwprintw(menuwin, 0, (menu_width - 17) / 2, " Payload Chooser ");


More information about the coreboot mailing list