ncurses 5.4
[ncurses.git] / test / demo_menus.c
1 /*
2  * $Id: demo_menus.c,v 1.1 2003/04/26 22:10:43 tom Exp $
3  *
4  * Demonstrate a variety of functions from the menu library.
5  * Thomas Dickey - 2003/4/26
6  */
7 /*
8 item_count                      -
9 item_description                -
10 item_init                       -
11 item_opts                       -
12 item_opts_off                   -
13 item_opts_on                    -
14 item_term                       -
15 item_userptr                    -
16 item_visible                    -
17 menu_back                       -
18 menu_fore                       -
19 menu_format                     -
20 menu_grey                       -
21 menu_init                       -
22 menu_mark                       -
23 menu_opts                       -
24 menu_opts_on                    -
25 menu_pad                        -
26 menu_pattern                    -
27 menu_request_by_name            -
28 menu_request_name               -
29 menu_spacing                    -
30 menu_sub                        -
31 menu_term                       -
32 menu_userptr                    -
33 set_current_item                -
34 set_item_init                   -
35 set_item_opts                   -
36 set_item_term                   -
37 set_item_userptr                -
38 set_menu_back                   -
39 set_menu_fore                   -
40 set_menu_grey                   -
41 set_menu_init                   -
42 set_menu_items                  -
43 set_menu_mark                   -
44 set_menu_opts                   -
45 set_menu_pad                    -
46 set_menu_pattern                -
47 set_menu_spacing                -
48 set_menu_term                   -
49 set_menu_userptr                -
50 set_top_row                     -
51 top_row                         -
52 */
53
54 #include <test.priv.h>
55
56 #if USE_LIBMENU
57
58 #include <menu.h>
59
60 int
61 main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
62 {
63     printf("Not implemented - demo for menu library\n");
64     return EXIT_SUCCESS;
65 }
66 #else
67 int
68 main(void)
69 {
70     printf("This program requires the curses menu library\n");
71     ExitProgram(EXIT_FAILURE);
72 }
73 #endif