Author: jcrouse Date: 2008-08-11 22:35:32 +0200 (Mon, 11 Aug 2008) New Revision: 3501
Modified: trunk/payloads/coreinfo/coreinfo.c trunk/payloads/coreinfo/lar_module.c trunk/payloads/coreinfo/nvram_module.c trunk/payloads/coreinfo/pci_module.c Log: This patch updates coreinfo to use the ACS_ macros for line graphics.
Signed-off-by: Ulf Jordan jordan@chalmers.se Acked-by: Jordan Crouse jordan.crouse@amd.com
Modified: trunk/payloads/coreinfo/coreinfo.c =================================================================== --- trunk/payloads/coreinfo/coreinfo.c 2008-08-11 20:34:50 UTC (rev 3500) +++ trunk/payloads/coreinfo/coreinfo.c 2008-08-11 20:35:32 UTC (rev 3501) @@ -89,7 +89,7 @@
wmove(win, 1, 1); for (i = 0; i < 78; i++) - waddch(win, '\304'); + waddch(win, ACS_HLINE); }
static void print_submenu(struct coreinfo_cat *cat)
Modified: trunk/payloads/coreinfo/lar_module.c =================================================================== --- trunk/payloads/coreinfo/lar_module.c 2008-08-11 20:34:50 UTC (rev 3500) +++ trunk/payloads/coreinfo/lar_module.c 2008-08-11 20:35:32 UTC (rev 3501) @@ -66,7 +66,7 @@
/* Draw a line down the middle. */ for (i = 2; i < 21; i++) - mvwaddch(win, i, 30, '\263'); + mvwaddch(win, i, 30, ACS_VLINE);
/* Draw the names down the left side. */ for (i = 0; i < lcount; i++) {
Modified: trunk/payloads/coreinfo/nvram_module.c =================================================================== --- trunk/payloads/coreinfo/nvram_module.c 2008-08-11 20:34:50 UTC (rev 3500) +++ trunk/payloads/coreinfo/nvram_module.c 2008-08-11 20:35:32 UTC (rev 3501) @@ -36,9 +36,9 @@
/* Print vertical and horizontal line. */ for (i = 0; i < 18; i++) - mvwaddch(win, 3 + i, 3, '\263'); + mvwaddch(win, 3 + i, 3, ACS_VLINE); for (i = 0; i < 48; i++) - mvwaddch(win, 3, 3 + i, (i == 0) ? '\332' : '\304'); + mvwaddch(win, 3, 3 + i, (i == 0) ? ACS_ULCORNER : ACS_HLINE);
/* Dump NVRAM contents. */ for (i = 1; i < 257; i++) {
Modified: trunk/payloads/coreinfo/pci_module.c =================================================================== --- trunk/payloads/coreinfo/pci_module.c 2008-08-11 20:34:50 UTC (rev 3500) +++ trunk/payloads/coreinfo/pci_module.c 2008-08-11 20:35:32 UTC (rev 3501) @@ -144,11 +144,11 @@
if (i == 0) { if (item != 0) - mvwprintw(win, 2 + i, 19, "\30"); + mvwaddch(win, 2 + i, 19, ACS_UARROW); } if (i == MENU_VISIBLE - 1) { if ((item + 1) < devices_index) - mvwprintw(win, 2 + i, 19, "\31"); + mvwaddch(win, 2 + i, 19, ACS_DARROW); } }
@@ -160,12 +160,12 @@ wmove(win, 3, 25);
for (i = 0; i < 48; i++) - waddch(win, (i == 0) ? '\332' : '\304'); + waddch(win, (i == 0) ? ACS_ULCORNER : ACS_HLINE);
for (i = 0; i < 4; i++) { mvwprintw(win, 4 + i, 23, "%2.2X", i * 16); wmove(win, 4 + i, 25); - waddch(win, '\263'); + waddch(win, ACS_VLINE); }
show_config_space(win, 4, 26, menu_selected);