summaryrefslogtreecommitdiffstats
path: root/lib/libforms/internal.h.orig
blob: 6895de2f769e13c0d59c0f4f1ca0c5793944a630 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Copyright (c) 1995 Paul Richards. 
 *
 * All rights reserved.
 *
 * This software may be used, modified, copied, distributed, and
 * sold, in both source and binary form provided that the above
 * copyright and these terms are retained, verbatim, as the first
 * lines of this file.  Under no circumstances is the author
 * responsible for the proper functioning of this software, nor does
 * the author assume any responsibility for damages incurred with
 * its use.
 */

#define F_UP		f_keymap[0]
#define F_DOWN		f_keymap[1]
#define F_RIGHT		f_keymap[2]
#define F_LEFT		f_keymap[3]
#define F_NEXT		f_keymap[4]
#define F_CLEFT		f_keymap[5]
#define F_CRIGHT	f_keymap[6]
#define F_CHOME		f_keymap[7]
#define F_CEND		f_keymap[8]
#define F_CBS		f_keymap[9]
#define F_CDEL		f_keymap[10]
#define F_ACCEPT	f_keymap[11]

/* Private function declarations */
static void show_form(struct form *);
static void disp_text(struct form *, int);
static void disp_menu(struct form *, int);
static void disp_action(struct form *, int);
static void disp_input(struct form *, int);
static void field_menu(struct form *);
static void field_input(struct form *);
static void field_action(struct form *);
static int print_string(WINDOW *, int, int, int, int, char *);
static int next_field(struct form *form, int);
OpenPOWER on IntegriCloud