summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/system.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-04-26 18:19:38 +0000
committerjkh <jkh@FreeBSD.org>1996-04-26 18:19:38 +0000
commit63a39b133febd79dac1e294c7519346665cf54ec (patch)
tree1ec8ccf1e95bf1812ff27dc4d29a47c50046a929 /release/sysinstall/system.c
parent60683a571f9c6f34db1b82a71ee8f5af7ece0906 (diff)
downloadFreeBSD-src-63a39b133febd79dac1e294c7519346665cf54ec.zip
FreeBSD-src-63a39b133febd79dac1e294c7519346665cf54ec.tar.gz
Fix display refresh bug in displayHelp()
Go back to Normal menus for Media and FTP menus rather than radio menus - the difference in behavior is confusing and sort of detracts from the added (small) advantage of seeing what you last picked.
Diffstat (limited to 'release/sysinstall/system.c')
-rw-r--r--release/sysinstall/system.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c
index 94b2a44..dc88f96 100644
--- a/release/sysinstall/system.c
+++ b/release/sysinstall/system.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: system.c,v 1.51 1996/04/23 01:29:33 jkh Exp $
+ * $Id: system.c,v 1.52 1996/04/25 17:31:27 jkh Exp $
*
* Jordan Hubbard
*
@@ -120,6 +120,8 @@ systemDisplayHelp(char *file)
{
char *fname = NULL;
char buf[FILENAME_MAX];
+ WINDOW *old = savescr();
+ int ret = 0;
fname = systemHelpFile(file, buf);
if (!fname) {
@@ -127,14 +129,15 @@ systemDisplayHelp(char *file)
use_helpfile(NULL);
use_helpline(NULL);
dialog_mesgbox("Sorry!", buf, -1, -1);
- return 1;
+ ret = 1;
}
else {
use_helpfile(NULL);
use_helpline(NULL);
dialog_textbox(file, fname, LINES, COLS);
}
- return 0;
+ restorescr(old);
+ return ret;
}
char *
OpenPOWER on IntegriCloud