Removed a layer of menus. Auto select partition to install into -- first FreeBSD partition in MBR table. Abort if no FreeBSD partition. Added a F_BUTTON type. Fixed up label editor to show free space properly. Fixed a few bugs.
26 lines
384 B
C
26 lines
384 B
C
#define ESC 27
|
|
#define TAB 9
|
|
|
|
struct field {
|
|
int y;
|
|
int x;
|
|
int width;
|
|
int maxlen;
|
|
int next;
|
|
int up;
|
|
int down;
|
|
int left;
|
|
int right;
|
|
char field[80];
|
|
int type;
|
|
};
|
|
|
|
#define F_EDIT 0
|
|
#define F_TITLE 1
|
|
#define F_BUTTON 2
|
|
#define F_TOGGLE 3
|
|
|
|
int disp_fields(WINDOW *, struct field *, int);
|
|
int change_field(struct field, int);
|
|
int edit_line(WINDOW *, int, int, char *, int, int);
|