1994-11-18 18:24:00 +00:00
|
|
|
#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];
|
1994-11-19 05:20:13 +00:00
|
|
|
int type;
|
1994-11-19 17:29:19 +00:00
|
|
|
int spare;
|
|
|
|
char *misc;
|
1994-11-18 18:24:00 +00:00
|
|
|
};
|
|
|
|
|
1994-11-19 05:20:13 +00:00
|
|
|
#define F_EDIT 0
|
|
|
|
#define F_TITLE 1
|
|
|
|
#define F_BUTTON 2
|
|
|
|
#define F_TOGGLE 3
|
|
|
|
|
1994-11-18 18:24:00 +00:00
|
|
|
int disp_fields(WINDOW *, struct field *, int);
|
|
|
|
int change_field(struct field, int);
|
1994-11-19 05:20:13 +00:00
|
|
|
int edit_line(WINDOW *, int, int, char *, int, int);
|