- Add a message explaining the user how to specify units for inputs
- in run_prog(), do an explicit wclear(stdscr); wrefresh(stdscr); before launching subwindows. This seems to solve all the display problems associated with run_prog().
This commit is contained in:
parent
586d4ce109
commit
5c7e21f9cb
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: md.c,v 1.23 1999/04/11 22:40:23 bouyer Exp $ */
|
||||
/* $NetBSD: md.c,v 1.24 1999/04/13 14:49:57 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
|
@ -271,6 +271,7 @@ editlab:
|
|||
|
||||
case 3: /* custom: ask user for all sizes */
|
||||
custom: ask_sizemult();
|
||||
msg_display(MSG_defaultunit, multname);
|
||||
partstart = ptstart;
|
||||
remain = fsptsize;
|
||||
|
||||
|
@ -280,7 +281,7 @@ custom: ask_sizemult();
|
|||
dlcylsize) - partstart;
|
||||
if (partsize > remain)
|
||||
partsize = remain;
|
||||
msg_display(MSG_askfsroot1, remain/sizemult, multname);
|
||||
msg_display_add(MSG_askfsroot1, remain/sizemult, multname);
|
||||
partsize = getpartsize(MSG_askfsroot2, partstart, partsize);
|
||||
bsdlabel[A].pi_offset = partstart;
|
||||
bsdlabel[A].pi_size = partsize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: menus.mi.eng,v 1.26 1999/04/11 22:40:20 bouyer Exp $ */
|
||||
/* $NetBSD: menus.mi.eng,v 1.27 1999/04/13 14:49:56 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
|
@ -135,6 +135,7 @@ menu edfspart, title " Change what? ", exit, y=15;
|
|||
option "FS kind", sub menu selfskind;
|
||||
option "Offset/size", action
|
||||
{ int start, size;
|
||||
msg_display_add(MSG_defaultunit, multname);
|
||||
start = getpartoff(MSG_offset, 0);
|
||||
size = getpartsize(MSG_size, start, 0);
|
||||
if (size == -1)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: menus.mi.fr,v 1.15 1999/04/11 22:40:20 bouyer Exp $ */
|
||||
/* $NetBSD: menus.mi.fr,v 1.16 1999/04/13 14:49:56 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
|
@ -135,6 +135,7 @@ menu edfspart, title " Changer quoi? ", exit, y=15;
|
|||
option "type de FS", sub menu selfskind;
|
||||
option "Offset/taille", action
|
||||
{ int start, size;
|
||||
msg_display_add(MSG_defaultunit, multname);
|
||||
start = getpartoff(MSG_offset, 0);
|
||||
size = getpartsize(MSG_size, start, 0);
|
||||
if (size == -1)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: msg.mi.eng,v 1.38 1999/04/11 22:40:21 bouyer Exp $ */
|
||||
/* $NetBSD: msg.mi.eng,v 1.39 1999/04/13 14:49:56 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
|
@ -199,6 +199,11 @@ choose partition sizes that are exact multiples of your actual
|
|||
cylinder size, which is %d sectors.
|
||||
}
|
||||
|
||||
message defaultunit
|
||||
{Unless specified with 'M' (megabytes), 'c' (cylinders) or 's' sector
|
||||
at the end of input, sizes and offsets are in %s.
|
||||
}
|
||||
|
||||
message startoutsidedisk
|
||||
{The start value you specified is beyond the end of the disk.
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: msg.mi.fr,v 1.15 1999/04/11 22:40:21 bouyer Exp $ */
|
||||
/* $NetBSD: msg.mi.fr,v 1.16 1999/04/13 14:49:56 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
|
@ -203,6 +203,11 @@ est plus efficace de choisir des tailles de partitions multiples de la
|
|||
taille d'un cylindre, qui est %d secteurs.
|
||||
}
|
||||
|
||||
message defaultunit
|
||||
{Tailles et offsets sont en %s, sauf si vous spécifiez une unitée ('M' pour
|
||||
mégactets, 'c' pour cylindres, 's' pour secteurs) à la fin de votre nombre.
|
||||
}
|
||||
|
||||
message startoutsidedisk
|
||||
{La valeur que vous avez spécifiée est en dehors du disque
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: net.c,v 1.42 1999/04/11 22:40:21 bouyer Exp $ */
|
||||
/* $NetBSD: net.c,v 1.43 1999/04/13 14:49:56 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
|
@ -409,8 +409,6 @@ get_via_ftp()
|
|||
strncat(ftp_dir, ftp_prefix, STRSIZE - strlen(ftp_dir));
|
||||
process_menu(MENU_ftpsource);
|
||||
|
||||
msg_clear();
|
||||
|
||||
list = dist_list;
|
||||
while (list->name) {
|
||||
if (!list->getit) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: run.c,v 1.13 1999/04/11 22:40:21 bouyer Exp $ */
|
||||
/* $NetBSD: run.c,v 1.14 1999/04/13 14:49:56 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
|
@ -437,9 +437,12 @@ run_prog(int fatal, int display, char *errmsg, char *cmd, ...)
|
|||
win.ws_col = 80;
|
||||
|
||||
if (display) {
|
||||
wclear(stdscr); /* XXX shouldn't be needed */
|
||||
wrefresh(stdscr);
|
||||
statuswin = subwin(stdscr, win.ws_row, win.ws_col, 0, 0);
|
||||
boxwin = subwin(statuswin, win.ws_row - 3, win.ws_col, 3, 0);
|
||||
actionwin = subwin(statuswin, win.ws_row - 5, win.ws_col - 3, 4, 1);
|
||||
actionwin = subwin(statuswin, win.ws_row - 5, win.ws_col - 3,
|
||||
4, 1);
|
||||
scrollok(actionwin, TRUE);
|
||||
|
||||
win.ws_col -= 3;
|
||||
|
|
Loading…
Reference in New Issue