summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-24 05:16:00 +0000
committerache <ache@FreeBSD.org>1994-10-24 05:16:00 +0000
commitf7e78facbba7d4aee12ff151def9e2bf26b1fb39 (patch)
tree431d2f04dd1099d5ee5bb0a0974085005f77c229
parent35cb76f2c93f9e4161549fb4cb5b7986d474f18d (diff)
downloadFreeBSD-src-f7e78facbba7d4aee12ff151def9e2bf26b1fb39.zip
FreeBSD-src-f7e78facbba7d4aee12ff151def9e2bf26b1fb39.tar.gz
Use configurable dialog attributes instead of hard-coded ones
-rw-r--r--sbin/sysinstall/label.c5
-rw-r--r--sbin/sysinstall/mbr.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/sbin/sysinstall/label.c b/sbin/sysinstall/label.c
index 928ffce..60811f5 100644
--- a/sbin/sysinstall/label.c
+++ b/sbin/sysinstall/label.c
@@ -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);
diff --git a/sbin/sysinstall/mbr.c b/sbin/sysinstall/mbr.c
index c42965c..889ee70 100644
--- a/sbin/sysinstall/mbr.c
+++ b/sbin/sysinstall/mbr.c
@@ -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++) {
OpenPOWER on IntegriCloud