diff options
author | jkh <jkh@FreeBSD.org> | 1999-12-14 04:25:29 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-12-14 04:25:29 +0000 |
commit | d3944eb60a18bfd5f8b4b6ff033a61a20f2383cc (patch) | |
tree | e8c2e2130b60892a8d69589245c55613e2ca6edf /usr.sbin/sade/disks.c | |
parent | 796518d06842cbc05ce0994ade4027837c42cec0 (diff) | |
download | FreeBSD-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/disks.c')
-rw-r--r-- | usr.sbin/sade/disks.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c index 9c736a8..20a7e90 100644 --- a/usr.sbin/sade/disks.c +++ b/usr.sbin/sade/disks.c @@ -358,7 +358,6 @@ diskPartition(Device *dev) char *val, tmp[20]; int subtype; chunk_e partitiontype; - WINDOW *save = savescr(); strcpy(tmp, "165"); val = msgGetInput(tmp, "New partition type:\n\n" @@ -380,7 +379,6 @@ diskPartition(Device *dev) chunk_info[current_chunk]->type = partitiontype; chunk_info[current_chunk]->subtype = subtype; } - restorescr(save); } break; @@ -504,7 +502,6 @@ diskPartition(Device *dev) if (p) { char buf[FILENAME_MAX]; - dialog_clear_norefresh(); use_helpline("Press F1 to read more about disk slices."); use_helpfile(systemHelpFile("partition", buf)); if (!variable_get(VAR_NO_WARN)) @@ -562,7 +559,7 @@ partitionHook(dialogMenuItem *selected) } else devs[0]->enabled = FALSE; - return DITEM_SUCCESS | DITEM_RESTORE; + return DITEM_SUCCESS; } static int @@ -626,7 +623,7 @@ diskPartitionEditor(dialogMenuItem *self) i = dmenuOpenSimple(menu, FALSE) ? DITEM_SUCCESS : DITEM_FAILURE; free(menu); } - return i | DITEM_RESTORE; + return i; } } return DITEM_SUCCESS; @@ -716,7 +713,6 @@ diskPartitionNonInteractive(Device *dev) } } if (!chunk_info[i]) { - dialog_clear(); msgConfirm("Unable to find any free space on this disk!"); return; } @@ -746,7 +742,6 @@ diskPartitionNonInteractive(Device *dev) } } if (!chunk_info[i]) { - dialog_clear(); msgConfirm("Unable to find %d free blocks on this disk!", sz); return; } @@ -758,13 +753,11 @@ diskPartitionNonInteractive(Device *dev) break; } if (!chunk_info[i]) { - dialog_clear(); msgConfirm("Unable to find any existing FreeBSD partitions on this disk!"); return; } } else { - dialog_clear(); msgConfirm("`%s' is an invalid value for %s - is config file valid?", cp, VAR_PARTITION); return; } |