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> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3501 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
cc8a9934df
commit
d133d9a230
|
@ -89,7 +89,7 @@ void print_module_title(WINDOW *win, const char *title)
|
|||
|
||||
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)
|
||||
|
|
|
@ -66,7 +66,7 @@ static int lar_module_redraw(WINDOW *win)
|
|||
|
||||
/* 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++) {
|
||||
|
|
|
@ -36,9 +36,9 @@ static void dump_nvram(WINDOW *win, int row, int col)
|
|||
|
||||
/* 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++) {
|
||||
|
|
|
@ -144,11 +144,11 @@ static int pci_module_redraw(WINDOW *win)
|
|||
|
||||
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 @@ static int pci_module_redraw(WINDOW *win)
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue