1menu_spacing(3X) menu_spacing(3X)
2
3
4
6 set_menu_spacing, menu_spacing - set and get spacing between menu
7 items.
8
10 #include <menu.h>
11
12 int set_menu_spacing(MENU *menu,
13 int spc_description,
14 int spc_rows,
15 int spc_columns);
16 int menu_spacing(const MENU *menu,
17 int* spc_description,
18 int* spc_rows,
19 int* spc_columns);
20
22 The function set_menu_spacing sets the spacing information for the
23 menu. Its parameter spc_description controls the number of spaces be‐
24 tween an item name and an item description. It must not be larger than
25 TABSIZE. The menu system puts in the middle of this spacing area the
26 pad character. The remaining parts are filled with spaces. The
27 spc_rows parameter controls the number of rows that are used for an
28 item. It must not be larger than 3. The menu system inserts the blank
29 lines between item rows, these lines will contain the pad character in
30 the appropriate positions. The spc_columns parameter controls the num‐
31 ber of blanks between columns of items. It must not be larger than
32 TABSIZE. A value of 0 for all the spacing values resets them to the
33 default, which is 1 for all of them.
34 The function menu_spacing passes back the spacing info for the menu.
35 If a pointer is NULL, this specific info is simply not returned.
36
38 Both routines return E_OK on success. set_menu_spacing may return
39 E_POSTED if the menu is posted, or E_BAD_ARGUMENT if one of the spacing
40 values is out of range.
41
43 curses(3X), curs_variables(3X), menu(3X).
44
46 The header file <menu.h> automatically includes the header file
47 <curses.h>.
48
50 These routines are specific to ncurses. They were not supported on
51 Version 7, BSD or System V implementations. It is recommended that any
52 code depending on them be conditioned using NCURSES_VERSION.
53
55 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
56 Raymond.
57
58
59
60 menu_spacing(3X)