summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/options.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-05-09 09:42:17 +0000
committerjkh <jkh@FreeBSD.org>1996-05-09 09:42:17 +0000
commit0f600e3b3639c4d0d645e43e9b3790d659fdfbbc (patch)
tree47e7c675397ffb7f38fb8ea89b10f5d6718bff8d /usr.sbin/sysinstall/options.c
parent37b4c046b896694291284f351c7bc95a1819cda1 (diff)
downloadFreeBSD-src-0f600e3b3639c4d0d645e43e9b3790d659fdfbbc.zip
FreeBSD-src-0f600e3b3639c4d0d645e43e9b3790d659fdfbbc.tar.gz
Some cosmetic changes:
Make "selection bar" inverse video white-on-blue on color screens to avoid it getting muddled up with popup dialogs. Do disk selection in a more friendly fashion (for one thing, allow a drive to be de-selected again if you change your mind). Add a few strategic screen-saves to prevent corruption of screen contents (thanks, Michael Elbel!).
Diffstat (limited to 'usr.sbin/sysinstall/options.c')
-rw-r--r--usr.sbin/sysinstall/options.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/sysinstall/options.c b/usr.sbin/sysinstall/options.c
index 003a0bd..bcfbda3 100644
--- a/usr.sbin/sysinstall/options.c
+++ b/usr.sbin/sysinstall/options.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated for what's essentially a complete rewrite.
*
- * $Id: options.c,v 1.34 1996/04/23 01:29:31 jkh Exp $
+ * $Id: options.c,v 1.35 1996/04/25 17:31:25 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -217,18 +217,20 @@ optionsEditor(dialogMenuItem *self)
for (i = 0; Options[i].name; i++) {
/* Names are painted somewhat gratuitously each time, but it's easier this way */
mvprintw(optrow, OPT_NAME_COL + optcol, Options[i].name);
- if (currOpt == i) standout();
+ if (currOpt == i)
+ attrset(item_selected_attr);
mvprintw(optrow++, OPT_VALUE_COL + optcol, value_of(Options[i]));
- if (currOpt == i) standend();
+ if (currOpt == i)
+ attrset(A_NORMAL);
if (optrow == OPT_END_ROW) {
optrow = OPT_START_ROW;
optcol += GROUP_OFFSET;
}
clrtoeol();
}
- standout();
+ attrset(item_attr);
mvaddstr(OPT_END_ROW + 3, 0, Options[currOpt].desc);
- standend();
+ attrset(A_NORMAL);
clrtoeol();
move(0, 14);
refresh();
OpenPOWER on IntegriCloud