summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-24 04:14:23 +0000
committerache <ache@FreeBSD.org>1994-10-24 04:14:23 +0000
commit0cadb3ec802c70230ea768077774af83217bd20f (patch)
treef5d6b8a7a2c4fa3f7b9115fcb89bb3b51f5b5f67
parent03c5dcf2510f352e048c7051cd6c19fb71fd627b (diff)
downloadFreeBSD-src-0cadb3ec802c70230ea768077774af83217bd20f.zip
FreeBSD-src-0cadb3ec802c70230ea768077774af83217bd20f.tar.gz
label.c: add delwin(window)
mbr.c: use proper dims for newwin, add shadow both: add ' ' and ESC as valid end-keys
-rw-r--r--sbin/sysinstall/label.c3
-rw-r--r--sbin/sysinstall/mbr.c10
2 files changed, 8 insertions, 5 deletions
diff --git a/sbin/sysinstall/label.c b/sbin/sysinstall/label.c
index 51d5d73..928ffce 100644
--- a/sbin/sysinstall/label.c
+++ b/sbin/sysinstall/label.c
@@ -67,8 +67,9 @@ display_disklabel(int disk)
dialog_update();
- while (key != '\n')
+ while (key != '\n' && key != ' ' && key != '\033')
key = wgetch(window);
+ delwin(window);
dialog_clear();
dialog_update();
}
diff --git a/sbin/sysinstall/mbr.c b/sbin/sysinstall/mbr.c
index 240cb4d..c42965c 100644
--- a/sbin/sysinstall/mbr.c
+++ b/sbin/sysinstall/mbr.c
@@ -94,7 +94,9 @@ show_mbr(struct mbr *mbr)
int x, y;
WINDOW *window;
- window = newwin(LINES, COLS, 0, 0);
+ if (use_shadow)
+ draw_shadow(stdscr, 1, 1, LINES-2, COLS-2);
+ window = newwin(LINES-2, COLS-2, 1, 1);
keypad(window, TRUE);
draw_box(window, 1, 1, LINES - 2, COLS - 2,
@@ -122,14 +124,14 @@ show_mbr(struct mbr *mbr)
mvwprintw(window, y+5, x, "Size (in sectors) %ld", mbr->dospart[(i*2)+j].dp_size);
}
}
- refresh();
+ dialog_update();
- while (key != '\n')
+ while (key != '\n' && key != ' ' && key != '\033')
key = wgetch(window);
delwin(window);
- refresh();
dialog_clear();
+ dialog_update();
}
int
OpenPOWER on IntegriCloud