mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Use configurable dialog attributes instead of hard-coded ones
This commit is contained in:
parent
2e1e6f4685
commit
fe08a6032f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3828
@ -15,10 +15,9 @@ display_disklabel(int disk)
|
||||
window = newwin(LINES-2, COLS-2, 1, 1);
|
||||
keypad(window, TRUE);
|
||||
|
||||
draw_box(window, 1, 1, LINES-2, COLS-2,
|
||||
COLOR_PAIR(COLOR_YELLOW), COLOR_PAIR(COLOR_BLUE));
|
||||
draw_box(window, 1, 1, LINES - 2, COLS - 2, dialog_attr, border_attr);
|
||||
wattrset(window, dialog_attr);
|
||||
|
||||
wattron(window, COLOR_PAIR(COLOR_RED));
|
||||
mvwprintw(window, 2, 2, "Dumping label for disk %d, %s\n", disk, avail_disklabels[disk].d_typename);
|
||||
mvwprintw(window, 3, 2, "magic = %lu",avail_disklabels[disk].d_magic);
|
||||
mvwprintw(window, 3, 22, "type = %x",avail_disklabels[disk].d_type);
|
||||
|
@ -99,8 +99,8 @@ show_mbr(struct mbr *mbr)
|
||||
window = newwin(LINES-2, COLS-2, 1, 1);
|
||||
keypad(window, TRUE);
|
||||
|
||||
draw_box(window, 1, 1, LINES - 2, COLS - 2,
|
||||
COLOR_PAIR(COLOR_YELLOW), COLOR_PAIR(COLOR_BLUE));
|
||||
draw_box(window, 1, 1, LINES - 2, COLS - 2, dialog_attr, border_attr);
|
||||
wattrset(window, dialog_attr);
|
||||
|
||||
for (i=0; i<NDOSPART/2; i++) {
|
||||
for (j=0; j<NDOSPART/2; j++) {
|
||||
|
Loading…
Reference in New Issue
Block a user