summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/index.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-06-14 14:34:03 +0000
committerjkh <jkh@FreeBSD.org>1996-06-14 14:34:03 +0000
commita6e6c783ca7402977911e66ddf2f6d12a36f65ea (patch)
tree9216eb32a4389841b05fff1638608782cfd8a122 /usr.sbin/sysinstall/index.c
parentea659e907a04a78bd9177cf580b96c30fd471db3 (diff)
downloadFreeBSD-src-a6e6c783ca7402977911e66ddf2f6d12a36f65ea.zip
FreeBSD-src-a6e6c783ca7402977911e66ddf2f6d12a36f65ea.tar.gz
Don't use some of the low-contrast text attributes I was using before - they
apparently look bad on some LCD screens. While I'm in there, tweak and adjust a number of other minor interface details which have been bothering me for awhile.
Diffstat (limited to 'usr.sbin/sysinstall/index.c')
-rw-r--r--usr.sbin/sysinstall/index.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/index.c b/usr.sbin/sysinstall/index.c
index 00a88d9..cbc7d78 100644
--- a/usr.sbin/sysinstall/index.c
+++ b/usr.sbin/sysinstall/index.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: index.c,v 1.33 1996/06/08 08:01:49 jkh Exp $
+ * $Id: index.c,v 1.34 1996/06/12 14:02:06 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -43,7 +43,7 @@
#include "sysinstall.h"
/* Macros and magic values */
-#define MAX_MENU 13
+#define MAX_MENU 12
#define _MAX_DESC 60
static int index_extract_one(Device *dev, PkgNodePtr top, PkgNodePtr who, Boolean depended);
@@ -60,7 +60,8 @@ static char *descrs[] = {
"To unmark a package, press SPACE again. To go to a previous menu,\n"
"select the Cancel button. To search for a package by name, press ESC.\n"
"To finally extract packages, you should Cancel all the way out of any\n"
- "submenus and then this top menu.",
+ "submenus and then this top menu. NOTE: The All category selection\n"
+ "creates a very large submenu. If you select it, please be patient.",
"Package Targets", "These are the packages you've selected for extraction.\n\n"
"If you're sure of these choices, select OK.\n"
"If not, select Cancel to go back to the package selection menu.\n",
@@ -484,6 +485,7 @@ index_menu(PkgNodePtr top, PkgNodePtr plist, int *pos, int *scroll)
/* NULL delimiter so item_free() knows when to stop later */
nitems = item_add(nitems, NULL, NULL, NULL, NULL, NULL, NULL, 0, &curr, &max);
+recycle:
dialog_clear();
if (hasPackages)
rval = dialog_checklist(top->name, top->desc, -1, -1, n > MAX_MENU ? MAX_MENU : n, -n, nitems, NULL);
@@ -508,7 +510,7 @@ index_menu(PkgNodePtr top, PkgNodePtr plist, int *pos, int *scroll)
else
msgConfirm("Search string: %s yielded no hits.", cp);
}
- continue;
+ goto recycle;
}
items_free(nitems, &curr, &max);
restorescr(w);
OpenPOWER on IntegriCloud