spacing


HOME

spacing

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
NOTES
PORTABILITY
AUTHORS

NAME

menu_spacing − Control spacing between menu items.

SYNOPSIS

#include <menu.h>
int set_menu_spacing(MENU *menu,
int spc_description,
int spc_rows,
int spc_columns);
int menu_spacing(const MENU *menu,
int* spc_description,
int* spc_rows,
int* spc_columns);

DESCRIPTION

The function set_menu_spacing sets the spacing information for the menu. Its parameter spc_description controls the number of spaces between an item name and an item description. It must not be larger than TABSIZE. The menu system puts in the middle of this spacing area the pad character. The remaining parts are filled with spaces. The spc_rows parameter controls the number of rows that are used for an item. It must not be larger than 3. The menu system inserts the blank lines between item rows, these lines will contain the pad character in the appropriate positions. The spc_columns parameter controls the number of blanks between columns of items. It must not be larger than TABSIZE. A value of 0 for all the spacing values resets them to the default, which is 1 for all of them.
The function menu_spacing passes back the spacing info for the menu. If a pointer is NULL, this specific info is simply not returned.

RETURN VALUE

Both routines return E_OK on success. set_menu_spacing may return E_POSTED if the menu is posted, or E_BAD_ARGUMENT if one of the spacing values is out of range.

SEE ALSO

ncurses(3NCURSES), curses_variables(3NCURSES), menu(3MENU).

NOTES

The header file <menu.h> automatically includes the header file <curses.h>.

PORTABILITY

These routines are specific to ncurses. They were not supported on Version 7, BSD or System V implementations. It is recommended that any code depending on them be conditioned using NCURSES_VERSION.

AUTHORS

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.




More Linux Commands

manpages/pam_faildelay.8.html
pam_faildelay(8) - Change the delay on failure per-applicati
pam_faildelay is a PAM module that can be used to set the delay on failure per-application. If no delay is given, pam_faildelay will use the value of FAIL_DELAY

manpages/getpgrp.2.html
getpgrp(2) - set/get process group - Linux manual page......
All of these interfaces are available on Linux, and are used for getting and setting the process group ID (PGID) of a process. The preferred, POSIX.1-specified

manpages/charnames.3pm.html
charnames(3pm) - access to Unicode character names and named
Pragma use charnames is used to gain access to the names of the Unicode characters and named character sequences, and to allow you to define your own character

manpages/expm1f.3.html
expm1f(3) - exponential minus 1 (Library - Linux man page)
expm1(x) returns a value equivalent to exp(x) 1 It is computed in a way that is accurate even if the value of x is near zero-a case where exp(x) - 1 would be in

manpages/XrmGetDatabase.3.html
XrmGetDatabase(3) - retrieve and store resource databases...
The XrmGetFileDatabase function opens the specified file, creates a new resource database, and loads it with the specifications read in from the specified file.

manpages/perluts.1.html
perluts(1) - Perl under UTS (Commands - Linux man page).....
Perl 5.7.2 (Developmental) or Perl 5.8.x (forthcoming) for UTS BUILDING PERL ON UTS NOTE: Some sites have redefined the way uname works, and if yours does this,

manpages/Tcl_RegExpExecObj.3.html
Tcl_RegExpExecObj(3) - Pattern matching with regular express
Tcl_RegExpMatch determines whether its pattern argument matches regexp, where regexp is interpreted as a regular expression using the rules in the re_syntax ref

manpages/gdk-pixbuf-query-loaders-64.1.html
gdk-pixbuf-query-loaders-64(1) - GdkPixbuf loader registrati
gdk-pixbuf-query-loaders collects information about loadable modules for gdk-pixbuf and writes it to the default cache file location, or to stdout. If called wi

manpages/XtMainLoop.3.html
XtMainLoop(3) - query and process events and input (ManPage)
XtNextEvent has been replaced by XtAppNextEvent. XtPeekEvent has been replaced by XtAppPeekEvent. XtPending has been replaced by XtAppPending. XtProcessEvent ha

manpages/Text::ParseWords.3pm.html
Text::ParseWords(3pm) - parse text into an array of tokens o
The &amp;nested_quotewords() and &amp;quotewords() functions accept a delimiter (which can be a regular expression) and a list of lines and then breaks those lines up i

manpages/glGetHistogram.3gl.html
glGetHistogram(3gl) - get histogram table - Linux man page
glGetHistogram returns the current histogram table as a one-dimensional image with the same width as the histogram. No pixel transfer operations are performed o

manpages/snmp_sess_send.3.html
snmp_sess_send(3) - session functions - Linux manual page...
These functions define a subset of the API that can be used to manage single SNMP sessions in a multi-threaded application. Except for snmp_sess_session(), thes





We can't live, work or learn in freedom unless the software we use is free.