summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/system.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-12-14 04:25:29 +0000
committerjkh <jkh@FreeBSD.org>1999-12-14 04:25:29 +0000
commitd3944eb60a18bfd5f8b4b6ff033a61a20f2383cc (patch)
treee8c2e2130b60892a8d69589245c55613e2ca6edf /usr.sbin/sade/system.c
parent796518d06842cbc05ce0994ade4027837c42cec0 (diff)
downloadFreeBSD-src-d3944eb60a18bfd5f8b4b6ff033a61a20f2383cc.zip
FreeBSD-src-d3944eb60a18bfd5f8b4b6ff033a61a20f2383cc.tar.gz
Completely rip-out and redesign sysinstall's refresh model as well
as redoing all the menus to have proper, or at least non-hallucinogenic, keyboard accelerators. This requires my recent update to libdialog to work properly and will probably also exhibit some other "interesting" behavior while the last few missing screen clears are found (which is why I'm not going to MFC immediately). At least now, however, sysinstall does not gratuitously redraw random screens at the drop of a hat and drive serial console installers out of their minds.
Diffstat (limited to 'usr.sbin/sade/system.c')
-rw-r--r--usr.sbin/sade/system.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c
index 0353fc6..c03d211 100644
--- a/usr.sbin/sade/system.c
+++ b/usr.sbin/sade/system.c
@@ -191,7 +191,9 @@ systemExecute(char *command)
{
int status;
struct termios foo;
+ WINDOW *w = savescr();
+ dialog_clear();
dialog_update();
end_dialog();
DialogActive = FALSE;
@@ -206,6 +208,7 @@ systemExecute(char *command)
msgDebug("systemExecute: Faked execution of `%s'\n", command);
}
DialogActive = TRUE;
+ restorescr(w);
return status;
}
@@ -216,7 +219,8 @@ systemDisplayHelp(char *file)
char *fname = NULL;
char buf[FILENAME_MAX];
int ret = 0;
-
+ WINDOW *w = savescr();
+
fname = systemHelpFile(file, buf);
if (!fname) {
snprintf(buf, FILENAME_MAX, "The %s file is not provided on this particular floppy image.", file);
@@ -230,6 +234,7 @@ systemDisplayHelp(char *file)
use_helpline(NULL);
dialog_textbox(file, fname, LINES, COLS);
}
+ restorescr(w);
return ret;
}
OpenPOWER on IntegriCloud